From 5f7e004151680e67901dd582d191e8a40dca3ca9 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Thu, 25 Mar 2021 13:06:14 +0800 Subject: [PATCH] * Fix bug#11475. --- module/bug/control.php | 4 ++++ module/testtask/view/results.html.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index 044b19c336..8ea841bca4 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -373,6 +373,10 @@ class bug extends control { $location = $this->createLink('execution', 'bug', "executionID={$output['executionID']}"); } + if(isset($output['projectID'])) + { + $location = $this->createLink('project', 'bug', "projectID={$output['projectID']}"); + } else { setcookie('bugModule', 0, 0, $this->config->webRoot, '', false, false); diff --git a/module/testtask/view/results.html.php b/module/testtask/view/results.html.php index 9cf7c72ab4..e9cecc3647 100644 --- a/module/testtask/view/results.html.php +++ b/module/testtask/view/results.html.php @@ -53,7 +53,7 @@ id,executionID=$testtask->execution,buildID=$testtask->build" : '';?> -
+