From 377ba07d06ead93eb45586fa0653318b0e453e77 Mon Sep 17 00:00:00 2001 From: liuhong Date: Tue, 6 Dec 2022 03:28:33 +0000 Subject: [PATCH] * Fix task code for #78696. --- module/bug/model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index abd418ad7b..69e0f12bdc 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -3025,7 +3025,6 @@ class bugModel extends model $allBranch = "`branch` = 'all'"; $branchAB = array(); $branchAB = explode(',', $branch); - unset($branchAB[0]); $branch = implode($branchAB, "','"); if($branch !== 'all' and strpos($bugQuery, '`branch` =') === false) $bugQuery .= " AND `branch` in('0','$branch')"; if(strpos($bugQuery, $allBranch) !== false) $bugQuery = str_replace($allBranch, '1', $bugQuery);