* Finish task #83942.

This commit is contained in:
liumengyi
2023-02-08 14:14:08 +08:00
parent a5a0316602
commit 84970085ec
8 changed files with 25 additions and 27 deletions
+8
View File
@@ -231,6 +231,14 @@ class programplan extends control
{
$actionID = $this->loadModel('action')->create('execution', $planID, 'edited');
$this->action->logHistory($actionID, $changes);
$newPlan = $this->programplan->getByID($planID);
if($plan->parent != $newPlan->parent)
{
$this->programplan->computeProgress($planID, 'edit');
$this->programplan->computeProgress($plan->parent, 'edit', true);
}
}
$locate = isonlybody() ? 'parent' : inlink('browse', "program=$plan->program&type=lists");
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locate));