From f200196ff00e00494063cc629ed071774db3a7c8 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Mon, 12 Apr 2021 13:28:22 +0800 Subject: [PATCH] * Finish task #37402. --- module/bug/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 68b3e4f4e4..2042419b62 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -383,11 +383,11 @@ class bug extends control if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID)); - if(!empty($output['executionID'])) + if($this->app->openApp == 'execution') { $location = $this->createLink('execution', 'bug', "executionID={$output['executionID']}"); } - elseif(!empty($output['projectID'])) + elseif($this->app->openApp == 'project') { $location = $this->createLink('project', 'bug', "projectID={$output['projectID']}"); }