From b2ba0fb2bb3082ad98ba0596798d69fe8ece4dd9 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 22 Oct 2025 14:15:57 +0800 Subject: [PATCH] * [refac] optimize code. --- module/caselib/ui/browse.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/caselib/ui/browse.html.php b/module/caselib/ui/browse.html.php index 6c8b4b55e8..e25d869c96 100644 --- a/module/caselib/ui/browse.html.php +++ b/module/caselib/ui/browse.html.php @@ -77,7 +77,7 @@ $canBatchChangeModule = common::hasPriv('testcase', 'batchChangeModule'); $canBatchAction = ($canBatchEdit or $canBatchDelete or $canBatchReview or $canBatchChangeModule); $cols = $this->loadModel('datatable')->getSetting('caselib'); -$cols['pri']['priList'] = $lang->testcase->priList; +if(!empty($cols['pri'])) $cols['pri']['priList'] = $lang->testcase->priList; if($isFromDoc) { if(isset($cols['actions'])) unset($cols['actions']);