diff --git a/module/productplan/model.php b/module/productplan/model.php index 347376abd7..b0d2e76a44 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -211,12 +211,11 @@ class productplanModel extends model */ public function getTopPlanPairs($productID, $branch = '', $exclude = '') { - $statusList = array('done','closed'); $planPairs = $this->dao->select("id,title")->from(TABLE_PRODUCTPLAN) ->where('product')->eq($productID) ->beginIF($branch !== '')->andWhere('branch')->eq($branch)->fi() ->andWhere('parent')->le(0) - ->andWhere('status')->notin($statusList) + ->andWhere('status')->notin('done,closed') ->andWhere('deleted')->eq(0) ->orderBy('id_desc') ->fetchPairs();