From 387604beeef0484a2231712f49e80032a6bce7fb Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 13 Oct 2025 10:33:15 +0800 Subject: [PATCH] * [bug#66044,done,0.3h] fix don't show build data error. --- module/build/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/build/model.php b/module/build/model.php index bdfce7dbf1..52b1e7e99d 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -82,7 +82,7 @@ class buildModel extends model ->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product = t2.id') ->where('t1.deleted')->eq(0) ->andWhere('t1.project')->ne(0) - ->andWhere('t1.id')->notIN($shadows) + ->beginIF(!empty($shadows))->andWhere('t1.id')->notIN($shadows)->fi() ->beginIF($projectID)->andWhere('t1.project')->eq((int)$projectID)->fi() ->beginIF($type == 'product' && $param)->andWhere('t1.product')->eq((int)$param)->fi() ->beginIF($type == 'bysearch')->andWhere($param)->fi()