From 4cecaf5ca8d49e1cd5d1a596ea7fc79ec4d49a14 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 16 Sep 2025 11:43:00 +0800 Subject: [PATCH] * [bug#65366,done,0.15h] fix need confirm cases range error. --- module/testcase/model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index 548d886fa7..354d759f80 100755 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -108,7 +108,10 @@ class testcaseModel extends model ->beginIF($branch !== 'all')->andWhere('t1.branch')->eq($branch)->fi() ->beginIF($moduleIdList)->andWhere('t1.module')->in($moduleIdList)->fi() ->beginIF($browseType == 'wait')->andWhere('t1.status')->eq($browseType)->fi() - ->beginIF($browseType == 'needconfirm')->andWhere('t2.version > t1.version')->fi() + ->beginIF($browseType == 'needconfirm') + ->andWhere('t2.version > t1.storyVersion') + ->andWhere('t2.status')->eq('active') + ->fi() ->beginIF($auto == 'auto' || $auto == 'unit')->andWhere('t1.auto')->eq($auto)->fi() ->beginIF($auto != 'auto' && $auto != 'unit')->andWhere('t1.auto')->ne('unit')->fi() ->beginIF($caseType)->andWhere('t1.type')->eq($caseType)->fi()