From d40db92dbe91f1f3387db46a71ba390e9c91abe6 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Fri, 9 Apr 2021 13:41:00 +0800 Subject: [PATCH] * Fix bug #11893. --- module/execution/control.php | 1 + module/execution/view/create.html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index 47a1c84dbe..ab36958f50 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1234,6 +1234,7 @@ class execution extends control $this->view->title = $this->lang->execution->tips; $this->view->tips = $this->fetch('execution', 'tips', "executionID=$executionID"); $this->view->executionID = $executionID; + $this->view->projectID = $projectID; $this->display(); exit; } diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 33ba331fd2..17685be726 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -11,7 +11,7 @@ */ ?> - createLink('execution', 'task', 'executionID=' . $executionID);?> +systemMode == 'new' ? $this->createLink('project', 'execution', "status=all&projectID=$projectID") : $this-> createLink('execution', 'task', 'executionID=' . $executionID);?>