* Fix bug #45366, don't create execution if the app is project and the method is linkstory.

This commit is contained in:
liumengyi
2024-01-26 14:53:37 +08:00
parent ee2f87c070
commit d43e010f3f
+1
View File
@@ -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'));
}