* Take out the method of skipping the creation and execution for config.

This commit is contained in:
tianshujie98
2021-08-13 13:18:58 +08:00
parent af77b379c2
commit 262b01de85
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -25,6 +25,8 @@ $config->execution->customBatchEditFields = 'days,type,teamname,status,desc,PO,Q
$config->execution->custom = new stdclass();
$config->execution->custom->batchEditFields = 'days,status,PM';
$config->execution->skipCreate = array('computeburn', 'ajaxgetdropmenu', 'executionkanban', 'ajaxgetteammembers');
$config->execution->editor = new stdclass();
$config->execution->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
$config->execution->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools');
+1 -1
View File
@@ -41,7 +41,7 @@ class execution extends control
$this->loadModel('project');
$this->executions = $this->execution->getPairs(0, 'all', 'nocode');
if(!in_array($this->methodName, array('computeburn', 'ajaxgetdropmenu', 'executionkanban', 'ajaxgetteammembers')) and $this->app->openApp == 'execution')
if(!in_array($this->methodName, $this->config->execution->skipCreate) and $this->app->openApp == 'execution')
{
if(!$this->executions and $this->methodName != 'index' and $this->methodName != 'create' and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('execution', 'create'));
}