From 8153dbc0946abb00ef17f64e2236095b86e39845 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 18 Aug 2021 15:10:18 +0800 Subject: [PATCH] * Finish task #41555. --- module/execution/config.php | 2 -- module/execution/control.php | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module/execution/config.php b/module/execution/config.php index faced2d6d7..0410b19d98 100644 --- a/module/execution/config.php +++ b/module/execution/config.php @@ -25,8 +25,6 @@ $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'); diff --git a/module/execution/control.php b/module/execution/control.php index efc0b5f7bd..37c8bfade2 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -41,7 +41,8 @@ class execution extends control $this->loadModel('project'); $this->executions = $this->execution->getPairs(0, 'all', 'nocode'); - if(!in_array($this->methodName, $this->config->execution->skipCreate) and $this->app->openApp == 'execution') + $skipCreateStep = array('computeburn', 'ajaxgetdropmenu', 'executionkanban', 'ajaxgetteammembers'); + if(!in_array($this->methodName, $skipCreateStep) 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')); }