From 8ccb39448f3250ed7b55f727286e19127f3ed0bd Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 6 Feb 2024 16:44:53 +0800 Subject: [PATCH] * Fix bug #45878. --- module/execution/js/bug.ui.js | 6 ++++++ module/execution/ui/bug.html.php | 1 + 2 files changed, 7 insertions(+) diff --git a/module/execution/js/bug.ui.js b/module/execution/js/bug.ui.js index 40c107a89c..10b8d55ce3 100644 --- a/module/execution/js/bug.ui.js +++ b/module/execution/js/bug.ui.js @@ -59,6 +59,12 @@ window.onRenderCell = function(result, {row, col}) if(row.data.color) result[0].props.style = 'color: ' + row.data.color; const module = this.options.modules[row.data.module]; if(module) result.unshift({html: '' + module + ''}); // 添加模块标签 + + if(parseInt(row.data.case)) + { + const caseLink = $.createLink('testcase', 'view', "caseID=" + row.data.case + "&version=" + row.data.caseVersion); + result.push({html: '[' + caseCommonLang + '#' + row.data.case + ']'}); + } } return result; diff --git a/module/execution/ui/bug.html.php b/module/execution/ui/bug.html.php index eb7900745d..c95b1fbd03 100644 --- a/module/execution/ui/bug.html.php +++ b/module/execution/ui/bug.html.php @@ -71,6 +71,7 @@ if($canBatchAssignTo) jsVar('+pageSummary', $summary); jsVar('checkedSummary', $lang->selectedItems); +jsVar('caseCommonLang', $this->lang->testcase->common); $cols = $this->loadModel('datatable')->getSetting('execution'); if(isset($cols['module'])) $cols['module']['map'] = $modulePairs;