diff --git a/module/execution/control.php b/module/execution/control.php index 26df26b251..39a3bf4d05 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3686,11 +3686,8 @@ class execution extends control $parents = array(); if($parentIdList) $parents = $this->execution->getByIdList($parentIdList); - $allExecutionsNum = $this->dao->select('COUNT(id) AS count')->from(TABLE_PROJECT) - ->where('project')->eq($projectID) - ->andWhere('deleted')->eq(0) - ->fetch(); - $this->view->allExecutionsNum = $allExecutionsNum; + $allExecutionsNum = $this->project->getStats($projectID, 'all'); + $this->view->allExecutionsNum = count($allExecutionsNum); $this->view->executionStats = $executionStats; $this->view->productList = $this->loadModel('product')->getProductPairsByProject($projectID); diff --git a/module/execution/view/all.html.php b/module/execution/view/all.html.php index d99ca0f0fe..b1aa1a8181 100644 --- a/module/execution/view/all.html.php +++ b/module/execution/view/all.html.php @@ -73,7 +73,7 @@ js::set('isCNLang', !$this->loadModel('common')->checkNotCN())
execution->noExecutions : $lang->execution->noExecution;?> - count)):?> + createLink('programplan', 'create', "projectID=$projectID&productID=$productID"), " " . $lang->programplan->create, '', "class='btn btn-info'");?>