* Fix error when creating task.

This commit is contained in:
tianshujie
2021-08-31 15:11:08 +08:00
parent 026287cbf5
commit 1fd8f082fd

View File

@@ -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);