* [bug#30619,done,0.5h,0h] Adjust projectrelease branch name.

This commit is contained in:
wangyuting
2024-09-19 14:44:08 +08:00
committed by 王于听
parent c2e3415da7
commit e8976bd2fc
2 changed files with 1 additions and 6 deletions
-6
View File
@@ -20,11 +20,5 @@ window.renderCell = function(result, {col, row})
return result;
}
if(col.name == 'branch')
{
result[0] = row.data.branchName
return result;
}
return result;
}
+1
View File
@@ -33,6 +33,7 @@ jsVar('canViewProjectbuild', hasPriv('projectbuild', 'view'));
$cols = $this->loadModel('datatable')->getSetting('projectrelease');
if(!$showBranch) unset($cols['branch']);
if(isset($cols['branch'])) $cols['branch']['name'] = 'branchName';
if(isset($cols['product'])) $cols['product']['map'] = $products;
if(empty($project->hasProduct)) unset($cols['product']);