From f52452c883454502def6fd83dfa67b61f6e3b920 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 5 Jan 2024 08:53:53 +0800 Subject: [PATCH] * Fix bug #43285. --- module/programplan/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/programplan/control.php b/module/programplan/control.php index 45402904c9..0325fc4a2e 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -151,7 +151,7 @@ class programplan extends control $changes = $this->programplan->update($planID, $projectID, $plan); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); - $newPlan = $this->programplan->fetchByID($plan->id); + $newPlan = $this->programplan->fetchByID($planID); if($plan->parent != $newPlan->parent) { $this->programplan->computeProgress($planID, 'edit');