* Finish task #8988.

This commit is contained in:
holan20180123
2021-01-20 08:20:25 +08:00
parent 017469206f
commit c9046ede6d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -896,10 +896,11 @@ class programplanModel extends model
/* Remove the currently edited stage. */
if(isset($parentStage[$planID])) unset($parentStage[$planID]);
$plan = $this->getByID($planID);
foreach($parentStage as $key => $stage)
{
$isCreate = $this->isCreateTask($key);
if($isCreate === false) unset($parentStage[$key]);
if($isCreate === false and $key != $plan->parent) unset($parentStage[$key]);
}
$parentStage[0] = $this->lang->programplan->emptyParent;
ksort($parentStage);