* Fix bug for batch edit.

This commit is contained in:
liumengyi
2022-01-06 13:20:16 +08:00
parent cb699a9f5a
commit f8da5c8503
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -161,10 +161,10 @@ class productplan extends control
}
$this->loadModel('score')->create('ajax', 'batchOther');
die(js::locate(inlink('browse', "productID=$productID&branch=$branch"), 'parent'));
return print(js::locate($this->session->productPlanList, 'parent'));
}
$planIDList = $this->post->planIDList ? $this->post->planIDList : die(js::locate($this->session->productPlanList, 'parent'));
$planIDList = $this->post->planIDList ? $this->post->planIDList : return print(js::locate($this->session->productPlanList, 'parent'));
$this->commonAction($productID, $branch);
+1 -1
View File
@@ -653,7 +653,7 @@ class productplanModel extends model
foreach($data->id as $planID)
{
$isFuture = isset($data->future[$planID]) ? true : false;
if($data->status[$planID] != 'wait') $isFuture = false;
if(isset($data->status[$planID]) and $data->status[$planID] != 'wait') $isFuture = false;
$plan = new stdclass();
$plan->branch = isset($data->branch[$planID]) ? $data->branch[$planID] : $oldPlans[$planID]->branch;