From 89c81dab5415a6ee3a9875ca8e6bfdf09b29c2d5 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Thu, 16 May 2019 13:35:02 +0200 Subject: [PATCH] ci server: fix queued projects --- public_html/appmonitor/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public_html/appmonitor/index.php b/public_html/appmonitor/index.php index 6c94072d..93f84d1e 100644 --- a/public_html/appmonitor/index.php +++ b/public_html/appmonitor/index.php @@ -86,8 +86,14 @@ $iProjectCount=count($oPrj->getProjects()); $iInProgress=0; $iInQueue=0; 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(); + */ $iInProgress+=$aProgress['inprogress'] ? 1 : 0; $iInQueue+=$aProgress['hasQueue'] ? 1 : 0; } -- GitLab