Merge branch 'sprint/170_xieqiyu_fixbug' into 'sprint/170'
* Fix bug. See merge request easycorp/zentaopms!341
This commit is contained in:
@@ -413,7 +413,7 @@ class productplan extends control
|
||||
else
|
||||
{
|
||||
$this->config->product->search['fields']['branch'] = $this->lang->product->branch;
|
||||
$branches = array('' => '', $this->loadModel('branch')->getPairs($plan->product);
|
||||
$branches = array('' => '') + $this->loadModel('branch')->getPairs($plan->product);
|
||||
if($plan->branch) $branches = array('' => '', $plan->branch => $branches[$plan->branch]);
|
||||
$this->config->product->search['params']['branch']['values'] = $branches;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user