From fd717b3ac97b7e11669fe96e4a5dcdf311ac2ee1 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 31 Jan 2024 17:15:55 +0800 Subject: [PATCH] * Fix export execution error when the execution is empty. --- module/execution/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index eade9f97a4..155a1e24c1 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -49,7 +49,7 @@ class execution extends control $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; - if($this->app->tab == 'project' && in_array($this->app->rawMethod, array('linkstory', 'importplanstories', 'unlinkstory'))) return false; + if($this->app->tab == 'project' && in_array($this->app->rawMethod, array('linkstory', 'importplanstories', 'unlinkstory', 'export'))) return false; $this->locate($this->createLink('execution', 'create')); }