diff --git a/module/program/model.php b/module/program/model.php index 26b3087dbe..54044f4b43 100644 --- a/module/program/model.php +++ b/module/program/model.php @@ -1324,7 +1324,6 @@ class programModel extends model ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project=t2.id') ->where('t1.deleted')->eq(0) ->beginIF(!empty($projects))->andWhere('t1.project')->in(array_keys($projects))->fi() - ->beginIF(!empty($projects))->andWhere('t2.model')->ne('waterfall')->fi() ->groupBy('execution') ->fetchAll(); diff --git a/module/project/control.php b/module/project/control.php index d634cf85fe..1f01660415 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -1100,6 +1100,8 @@ class project extends control $this->app->loadClass('pager', $static = true); $pager = new pager($recTotal, $recPerPage, $pageID); + $this->loadModel('program')->refreshStats(); // Refresh stats fields of projects. + $allExecution = $this->execution->getStatData($projectID, 'all'); $this->view->allExecutionNum = empty($allExecution);