* Skip create a execution when the method type is ajax.
This commit is contained in:
@@ -43,7 +43,7 @@ class execution extends control
|
||||
|
||||
$mode = $this->app->tab == 'execution' ? 'multiple' : '';
|
||||
$this->executions = $this->execution->getPairs(0, 'all', "nocode,{$mode}");
|
||||
$skipCreateStep = array('computeburn', 'ajaxgetdropmenu', 'executionkanban', 'ajaxgetteammembers', 'all');
|
||||
$skipCreateStep = array('computeburn', 'ajaxgetdropmenu', 'executionkanban', 'ajaxgetteammembers', 'all', 'ajaxgetcopyprojectexecutions');
|
||||
if(in_array($this->methodName, $skipCreateStep) && $this->app->tab == 'execution') return false;
|
||||
if($this->executions || $this->methodName == 'index' || $this->methodName == 'create' || $this->app->getViewType() == 'mhtml') return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user