From f83a4e4b41afb6dea01ffd99ab3ce590b75ade05 Mon Sep 17 00:00:00 2001
From: holan20180123 <56391770@qq.com>
Date: Tue, 27 Apr 2021 11:37:39 +0800
Subject: [PATCH] * Fix bug #12368.
---
module/index/view/index.html.php | 1 -
module/testcase/view/createbug.html.php | 5 ++++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/module/index/view/index.html.php b/module/index/view/index.html.php
index 532aa11264..c81c19bb92 100644
--- a/module/index/view/index.html.php
+++ b/module/index/view/index.html.php
@@ -56,7 +56,6 @@ js::set('defaultOpen', $open);
diff --git a/module/testcase/view/createbug.html.php b/module/testcase/view/createbug.html.php
index e4f6557599..a4ac7c1908 100644
--- a/module/testcase/view/createbug.html.php
+++ b/module/testcase/view/createbug.html.php
@@ -11,6 +11,7 @@
*/
?>
+openApp);?>
testcase->createBug;?>
@@ -30,7 +31,9 @@ function createBug(obj)
var onlybody = config.onlybody;
config.onlybody = 'no';
- window.open(createLink('bug', 'create', params + ',stepIdList=' + stepIdList), '_parent');
+ var link = createLink('bug', 'create', params + ',stepIdList=' + stepIdList);
+ if(openApp == 'my') window.parent.$.apps.open(link, 'qa')
+ window.open(link, '_parent');
config.onlybody = onlybody;
}