Merge branch 'sprint/181_liumengyi_fixbug' into 'master'

* Fix bug for batch edit.

See merge request easycorp/zentaopms!1294
This commit is contained in:
孙广明
2022-01-06 06:20:21 +00:00
+2 -2
View File
@@ -164,11 +164,11 @@ class productplan extends control
return print(js::locate($this->session->productPlanList, 'parent'));
}
$planIDList = $this->post->planIDList ? $this->post->planIDList : return print(js::locate($this->session->productPlanList, 'parent'));
if(!$this->post->planIDList) return print(js::locate($this->session->productPlanList, 'parent'));
$this->commonAction($productID, $branch);
$plans = $this->productplan->getByIDList($planIDList);
$plans = $this->productplan->getByIDList($this->post->planIDList);
$oldBranch = array();
foreach($plans as $plan) $oldBranch[$plan->id] = $plan->branch;