From 7ad80af88ce029a2aea2a8b5d247eba15c5ac62f Mon Sep 17 00:00:00 2001 From: wangyuting Date: Thu, 30 May 2024 14:35:30 +0800 Subject: [PATCH] * [bug#50227,done,2h,0h] Remove linkbug btn of edit bug is modal. --- module/bug/ui/edit.html.php | 2 +- module/execution/js/taskkanban.ui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/ui/edit.html.php b/module/bug/ui/edit.html.php index 1417b92a48..9afc25397b 100644 --- a/module/bug/ui/edit.html.php +++ b/module/bug/ui/edit.html.php @@ -571,7 +571,7 @@ detailBody set::items(isset($bug->relatedBugTitles) ? $bug->relatedBugTitles : array()), set::value($bug->relatedBug) ), - common::hasPriv('bug', 'linkBugs') ? inputGroupAddon + common::hasPriv('bug', 'linkBugs') && !isInModal() ? inputGroupAddon ( setClass('p-0'), btn diff --git a/module/execution/js/taskkanban.ui.js b/module/execution/js/taskkanban.ui.js index 59514a2f3f..e4b1b13423 100644 --- a/module/execution/js/taskkanban.ui.js +++ b/module/execution/js/taskkanban.ui.js @@ -149,7 +149,7 @@ window.buildColCardActions = function(col) } else if(col.type == 'unconfirmed') { - if(priv.canCreateBug) actions.push({text: bugLang.create, url: $.createLink('bug', 'create', 'productID=0&moduleID=0&extra=executionID=' + executionID), 'data-toggle': 'modal', 'data-size': 'lg'}); + if(priv.canCreateBug) actions.push({text: bugLang.create, url: $.createLink('bug', 'create', 'productID=' + productID + '&moduleID=0&extra=executionID=' + executionID), 'data-toggle': 'modal', 'data-size': 'lg'}); if(priv.canBatchCreateBug) { if(productNum > 1) actions.push({text: bugLang.batchCreate, url: '#batchCreateBug', 'data-toggle': 'modal', 'data-size': 'lg'});