From 2b3f57c2a6ef78f1657ffc85f98578e55f91c362 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Sun, 29 Jan 2023 09:52:49 +0800 Subject: [PATCH] * Fix bug #31540. --- module/testcase/model.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index 3c5d34e0c3..8dc0912ad0 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -2106,7 +2106,12 @@ class testcaseModel extends model $autoIcon = $case->auto == 'auto' ? " " : ''; if(isset($branches[$case->branch]) and $showBranch) echo "{$branches[$case->branch]} "; if($modulePairs and $case->module and isset($modulePairs[$case->module])) echo "{$modulePairs[$case->module]} "; - echo $canView ? ($fromCaseID ? html::a($caseLink, $case->title, null, "style='color: $case->color' data-app='{$this->app->tab}'") . html::a(helper::createLink('testcase', 'view', "caseID=$fromCaseID"), "[#$fromCaseID]" . $autoIcon, '', "data-app='{$this->app->tab}'") : html::a($caseLink, $case->title . $autoIcon, null, "style='color: $case->color' data-app='{$this->app->tab}'")) : "$case->title"; + echo $canView ? html::a($caseLink, $case->title, null, "style='color: $case->color' data-app='{$this->app->tab}'") + : "$case->title"; + + $fromLink = ($fromCaseID and $canView) ? helper::createLink('testcase', 'view', "caseID=$fromCaseID") : '#'; + $title = $fromCaseID ? "[#$fromCaseID]$autoIcon" : $autoIcon; + if($case->auto == 'auto') echo html::a($fromLink, $title, '', "data-app='{$this->app->tab}'"); break; case 'branch': echo $branches[$case->branch];