From 6f9cfb66f1a9a384427ad8ae19ce20dbb28cd812 Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 14 Jul 2022 15:13:51 +0800 Subject: [PATCH] * Fix bug #24706. --- module/productplan/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/productplan/model.php b/module/productplan/model.php index e97ac85e01..663e969371 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -639,7 +639,7 @@ class productplanModel extends model $childStatus = $this->dao->select('status')->from(TABLE_PRODUCTPLAN)->where('parent')->eq($parentID)->andWhere('deleted')->eq(0)->fetchPairs(); /* If the subplan is empty, update the plan. */ - if(empty($childStatus)) $this->dao->update(TABLE_PRODUCTPLAN)->set('parent')->eq(0)->exec(); + if(empty($childStatus)) $this->dao->update(TABLE_PRODUCTPLAN)->set('parent')->eq(0)->where('id')->eq($parentID)->exec(); if(count($childStatus) == 1 and isset($childStatus['wait'])) {