* Fix bug #52286.
This commit is contained in:
@@ -44,8 +44,7 @@ if($this->config->edition == 'ipd')
|
||||
$task->executionInfo = $execution;
|
||||
$actions = !$task->deleted && common::canModify('execution', $execution) ? $this->loadModel('common')->buildOperateMenu($task) : array();
|
||||
$hasDivider = !empty($actions['mainActions']) && !empty($actions['suffixActions']);
|
||||
if(!empty($actions)) $actions = array_merge($actions['mainActions'], array(array('type' => 'divider')), $actions['suffixActions']);
|
||||
if(!$hasDivider) unset($actions['type']);
|
||||
if(!empty($actions)) $actions = array_merge($actions['mainActions'], $hasDivider ? array(array('type' => 'divider')) : array(), $actions['suffixActions']);
|
||||
foreach($actions as $key => $action)
|
||||
{
|
||||
if(isset($action['url']) && strpos($action['url'], 'createBranch') !== false && empty($hasGitRepo)) unset($actions[$key]);
|
||||
|
||||
Reference in New Issue
Block a user