From edd482504518b47d0f2298f15d3991676930eceb Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Fri, 9 Apr 2021 16:34:26 +0800 Subject: [PATCH] * Fix bug #11934. --- module/execution/control.php | 5 +++++ module/execution/model.php | 1 + module/execution/view/create.html.php | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index ab36958f50..333563729a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1287,6 +1287,11 @@ class execution extends control $this->executeHooks($executionID); + if($this->app->openApp == 'doc') + { + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('doc', 'objectLibs', "type=execution"))); + } + $planID = ''; if(isset($_POST['plans'])) { diff --git a/module/execution/model.php b/module/execution/model.php index 04b3a1fd1b..2a6c1b79de 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -278,6 +278,7 @@ class executionModel extends model */ public function create($copyExecutionID = '') { + $sprintType = 'sprint'; $this->lang->execution->team = $this->lang->execution->teamname; if($this->config->systemMode == 'new') diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 17685be726..3488b3a143 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -11,7 +11,7 @@ */ ?> -systemMode == 'new' ? $this->createLink('project', 'execution', "status=all&projectID=$projectID") : $this-> createLink('execution', 'task', 'executionID=' . $executionID);?> +systemMode == 'new' ? $this->createLink('project', 'execution', "status=all&projectID=$projectID") : $this->createLink('execution', 'task', 'executionID=' . $executionID);?>