From 2d3cfc3613d6166a69d0d291d035853083f6bf88 Mon Sep 17 00:00:00 2001 From: liuhong Date: Thu, 2 Feb 2023 05:59:18 +0000 Subject: [PATCH] *Fix the testtask and testcase creatBug open new label. --- module/common/model.php | 1 + module/testcase/view/createbug.html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index a357d28ff4..6415606104 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -2522,6 +2522,7 @@ EOD; ($module == 'file' and strpos('|read|download|uploadimages|ajaxwopifiles|', "|{$method}|") !== false) or ($module == 'report' && $method == 'annualdata') or ($module == 'misc' && $method == 'captcha') or + ($module == 'bug' && $method == 'create') or ($module == 'execution' and $method == 'printkanban') or ($module == 'traincourse' and $method == 'ajaxuploadlargefile') or ($module == 'traincourse' and $method == 'playvideo')) diff --git a/module/testcase/view/createbug.html.php b/module/testcase/view/createbug.html.php index 6793717010..b56b8ea6c6 100644 --- a/module/testcase/view/createbug.html.php +++ b/module/testcase/view/createbug.html.php @@ -38,7 +38,7 @@ function createBug(obj) } else { - window.open(link, '_parent'); + window.open(link, '_blank'); } config.onlybody = onlybody; }