From d43e010f3f0eb07f5bf268ab0f3795ceee060e66 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 26 Jan 2024 14:52:39 +0800 Subject: [PATCH] * Fix bug #45366, don't create execution if the app is project and the method is linkstory. --- module/execution/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/execution/control.php b/module/execution/control.php index 472de2668f..a4c142a691 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -49,6 +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' && $this->app->rawMethod == 'linkstory') return false; $this->locate($this->createLink('execution', 'create')); }