diff --git a/module/execution/control.php b/module/execution/control.php index 816618e072..26df26b251 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3686,7 +3686,6 @@ 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) diff --git a/module/productplan/control.php b/module/productplan/control.php index 66ae055a2a..4327d7b130 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -350,6 +350,7 @@ class productplan extends control $this->view->branchID = $branchID; $this->view->kanbanData = $this->loadModel('kanban')->getPlanKanban($product, $branchID, $planGroup); } + $productPlansNum = $this->dao->select('COUNT(id) AS count')->from(TABLE_PRODUCTPLAN) ->where('product')->eq($productID) ->andWhere('deleted')->eq(0)