* Fix bug #48708.
This commit is contained in:
@@ -4734,7 +4734,7 @@ class executionModel extends model
|
||||
if($actionName == 'createTask' && !commonModel::hasPriv('task', 'create')) continue;
|
||||
if(!in_array($actionName, array('createTask', 'createChildStage')) && !commonModel::hasPriv('execution', $actionName)) continue;
|
||||
$action = array('name' => $actionName, 'disabled' => $this->isClickable($execution, $actionName) ? false : true);
|
||||
if($actionName == 'createChildStage' && $action['disabled']) $action['hint'] = $this->lang->programplan->error->createdTask;
|
||||
if($actionName == 'createChildStage' && $action['disabled']) $action['hint'] = $execution->type == 'stage' ? $this->lang->programplan->error->createdTask : $this->lang->programplan->error->notStage;
|
||||
if(!$action['disabled']) break;
|
||||
if($actionName == 'close' && $execution->status != 'closed') break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user