* [highgo] trunk branch is 0.

This commit is contained in:
朱金勇
2025-11-06 13:47:25 +08:00
committed by Gitfox
parent 4c4b1d2f82
commit 1e752ba079
+1 -1
View File
@@ -294,7 +294,7 @@ class bugTao extends bugModel
/* 如果查询中没有分支条件,获取主干和当前分支下的 bug。*/
/* If there is no branch condition in query, append it that is main and current . */
$branch = trim($branch, ',');
$branch = $branch ? trim($branch, ',') : '0';
if(strpos($branch, ',') !== false) $branch = str_replace(',', "','", $branch);
if($branch !== 'all' && strpos($bugQuery, '`branch` =') === false) $bugQuery .= " AND `branch` = '$branch'";