From 262b01de85285118eb79ebb4e612432906164bd2 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Fri, 13 Aug 2021 13:18:58 +0800 Subject: [PATCH] * Take out the method of skipping the creation and execution for config. --- module/execution/config.php | 2 ++ module/execution/control.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/execution/config.php b/module/execution/config.php index 0410b19d98..faced2d6d7 100644 --- a/module/execution/config.php +++ b/module/execution/config.php @@ -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'); diff --git a/module/execution/control.php b/module/execution/control.php index 38139a55fd..b9b9f02de1 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -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')); }