This commit is contained in:
songchenxuan
2021-11-24 09:24:17 +08:00
parent 55b762b8b9
commit ea45481a2a
+1 -1
View File
@@ -479,7 +479,7 @@ class projectrelease extends control
}
else
{
$this->config->product->search['fields']['branch'] = $this->lang->product->branch;
$this->config->product->search['fields']['branch'] = sprintf($this->lang->product->branch, $this->lang->product->branchName[$release->productType]);
$branches = array('' => '') + $this->loadModel('branch')->getPairs($release->product, 'noempty');
if($release->branch) $branches = array('' => '', $release->branch => $branches[$release->branch]);
$this->config->product->search['params']['branch']['values'] = $branches;