From 1001e35d9b25c02e382cf51848947f7e0df58e86 Mon Sep 17 00:00:00 2001 From: liuhong Date: Thu, 8 Dec 2022 16:38:50 +0000 Subject: [PATCH] * Fix bug #30609. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index e15a7fc9b9..00e8371ec6 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1855,7 +1855,7 @@ class bugModel extends model ->andWhere('deleted')->eq(0) ->beginIF($excludeBugs)->andWhere('id')->notIN($excludeBugs)->fi() ->beginIF(!empty($productID) and strpos($bugQuery, 'product') === false and strpos($bugQuery, '`product` IN') === false)->andWhere('product')->eq($productID)->fi() - ->beginIF(!empty($productID) and strpos($bugQuery, 'product') === false and strpos($bugQuery, '`product` IN') === false)->andWhere('branch')->eq($branchID)->fi() + ->beginIF(!empty($productID) and strpos($bugQuery, 'product') === false and strpos($bugQuery, '`product` IN') === false and $branchID != 'all')->andWhere('branch')->eq($branchID)->fi() ->orderBy($orderBy) ->page($pager) ->fetchAll('id');