From 64310b7dfb8f0797f8afe39ab5832a82e1efcde2 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Mon, 20 Jun 2022 08:17:44 +0000 Subject: [PATCH] * Finish task #57871. --- module/productplan/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();