Merge branch 'sprint/zentaopms262_mayue_bug#29945' into 'master'

* Optimize code about bug #29945.

See merge request easycorp/zentaopms!6307
This commit is contained in:
孙广明
2022-11-23 01:31:04 +00:00
+1 -1
View File
@@ -151,7 +151,7 @@ class productplan extends control
$oldBranch = array($planID => $plan->branch);
/* Get the parent plan pair exclusion itself. */
$parentPlanPairs = $this->productplan->getTopPlanPairs($productID, $branchID);
$parentPlanPairs = $this->productplan->getTopPlanPairs($plan->product, $plan->branch);
unset($parentPlanPairs[$planID]);
$this->view->parentPlanPairs = $parentPlanPairs;