* Fix bug for batch edit.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user