From f212a669440d17e9454e389f68d2fb80400357c2 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Fri, 30 Jun 2023 02:31:49 +0000 Subject: [PATCH] * Optimize bug edit, change remove get cases. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index 9a206e5859..b5b13ea787 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1122,7 +1122,7 @@ class bug extends control if($bug->case) { $case = $this->loadModel('testcase')->getByID($bug->case); - $cases = $this->loadmodel('testcase')->getPairsByProduct($bug->product, array(0, $bug->branch), $case->title, $this->config->maxCount); + $cases = array($case->id => $case->id . $case->title); } $this->config->moreLinks['case'] = inlink('ajaxGetProductCases', "bugID={$bugID}");