From b88740a83608544c12ad28d00923c2507f6063a9 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 5 Jan 2022 17:28:21 +0800 Subject: [PATCH] * Fix bug #18173. --- module/productplan/model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/productplan/model.php b/module/productplan/model.php index 38e49cd42e..e4ada7a7fb 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -604,7 +604,11 @@ class productplanModel extends model $parent = $this->getByID($parentID); $childStatus = $this->dao->select('status')->from(TABLE_PRODUCTPLAN)->where('parent')->eq($parentID)->andWhere('deleted')->eq(0)->fetchPairs(); - if(count($childStatus) == 1 and isset($childStatus['closed'])) + if(count($childStatus) == 1 and isset($childStatus['wait'])) + { + return; + } + elseif(count($childStatus) == 1 and isset($childStatus['closed'])) { if($parent->status != 'closed') {