* Fix bug for API, can get project tasks (this project have not executions) now.
This commit is contained in:
@@ -44,6 +44,8 @@ class execution extends control
|
||||
if(!isset($this->app->user)) return;
|
||||
|
||||
$mode = $this->app->tab == 'execution' ? 'multiple' : '';
|
||||
/* this->app->tab will always be my if use API. */
|
||||
if(defined('RUN_MODE') and RUN_MODE == 'api') $mode = '';
|
||||
$this->executions = $this->execution->getPairs(0, 'all', "nocode,{$mode}");
|
||||
$skipCreateStep = array('computeburn', 'ajaxgetdropmenu', 'executionkanban', 'ajaxgetteammembers', 'all');
|
||||
if(!in_array($this->methodName, $skipCreateStep) and $this->app->tab == 'execution')
|
||||
|
||||
Reference in New Issue
Block a user