From d16bd309b4cea7425d2f482e7ed80c792668e2e4 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 26 Nov 2020 16:30:22 +0800 Subject: [PATCH] * Finish task #8534. --- module/programplan/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/programplan/model.php b/module/programplan/model.php index 27b431cb1d..260f598d2b 100644 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -681,6 +681,8 @@ class programplanModel extends model } else { + $childrenIDList = $this->dao->select('*')->from(TABLE_PROJECT)->where('parent')->eq($oldPlan->id)->fetch('id'); + if(!empty($childrenIDList)) $this->dao->update(TABLE_PROJECT)->set('acl')->eq($plan->acl)->where('id')->in($childrenIDList)->exec(); /* The workload of the parent plan cannot exceed 100%. */ $oldPlan->parent = $plan->parent; $totalPercent = $this->getTotalPercent($oldPlan);