* Modify the get by search.

This commit is contained in:
hufangzhou
2021-11-11 11:29:54 +08:00
parent 8e9f8b860e
commit 7d9793eaa3
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -2497,7 +2497,7 @@ class bugModel extends model
}
$allBranch = "`branch` = 'all'";
if($branch !== 'all' and strpos($bugQuery, '`branch` =') === false) $bugQuery .= " AND `branch` in('0','$branch')";
if($branch !== 'all' and strpos($bugQuery, '`branch` =') === false) $bugQuery .= " AND `branch` in('$branch')";
if(strpos($bugQuery, $allBranch) !== false) $bugQuery = str_replace($allBranch, '1', $bugQuery);
$allProject = "`project` = 'all'";