From 63a63135c6e7b87c304d4f89a060caa6313a01d2 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 29 Apr 2021 14:13:38 +0800 Subject: [PATCH] * Fix bug #12368. --- module/testcase/view/createbug.html.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/testcase/view/createbug.html.php b/module/testcase/view/createbug.html.php index a4ac7c1908..2cbbcf46f3 100644 --- a/module/testcase/view/createbug.html.php +++ b/module/testcase/view/createbug.html.php @@ -32,8 +32,14 @@ function createBug(obj) var onlybody = config.onlybody; config.onlybody = 'no'; var link = createLink('bug', 'create', params + ',stepIdList=' + stepIdList); - if(openApp == 'my') window.parent.$.apps.open(link, 'qa') - window.open(link, '_parent'); + if(openApp == 'my') + { + window.parent.$.apps.open(link, 'qa'); + } + else + { + window.open(link, '_parent'); + } config.onlybody = onlybody; }