From 1fd8f082fdb44105ebf7e698bdfb5ef9d85a70d5 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 31 Aug 2021 15:11:08 +0800 Subject: [PATCH] * Fix error when creating task. --- module/task/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index 7be4912fac..52ef2b1506 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -39,7 +39,7 @@ class task extends control */ public function create($executionID = 0, $storyID = 0, $moduleID = 0, $taskID = 0, $todoID = 0) { - if($executionID == 0) $this->locate($this->createLink('execution', 'create')); + if(empty($this->app->user->view->sprints) and !$executionID) $this->locate($this->createLink('execution', 'create')); $executions = $this->execution->getPairs(); $executionID = $this->execution->saveState($executionID, $executions);