Skip to content
Snippets Groups Projects
Commit 89c81dab authored by hahn's avatar hahn
Browse files

ci server: fix queued projects

parent 7dae943b
No related branches found
No related tags found
No related merge requests found
...@@ -86,8 +86,14 @@ $iProjectCount=count($oPrj->getProjects()); ...@@ -86,8 +86,14 @@ $iProjectCount=count($oPrj->getProjects());
$iInProgress=0; $iInProgress=0;
$iInQueue=0; $iInQueue=0;
foreach ($oPrj->getProjects() as $sPrj) { foreach ($oPrj->getProjects() as $sPrj) {
$oPrj->getPhases(); $oPrj2=new project($sPrj);
$aProgress=$oPrj2->getProgress();
/*
* so ist irgendwas anders ... er initialisiert das Projekt nicht
*
$oPrj->setProjectById($sPrj);
$aProgress=$oPrj->getProgress(); $aProgress=$oPrj->getProgress();
*/
$iInProgress+=$aProgress['inprogress'] ? 1 : 0; $iInProgress+=$aProgress['inprogress'] ? 1 : 0;
$iInQueue+=$aProgress['hasQueue'] ? 1 : 0; $iInQueue+=$aProgress['hasQueue'] ? 1 : 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment