* Finish task #37402.

This commit is contained in:
hufangzhou
2021-04-12 13:28:22 +08:00
parent b2314e26ee
commit f200196ff0
+2 -2
View File
@@ -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']}");
}