From 4dd72bb56b8f55de1a118a07ef49dc9f151e0200 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 27 Dec 2021 17:37:42 +0800 Subject: [PATCH] *Fix classic mode branch bug. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index bbeb913ca5..4e2979347e 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -559,7 +559,7 @@ class bug extends control if($user) $productMembers[$assignedTo] = $user->realname; } - $moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'bug', $startModuleID = 0, $branch === 'all' ? 0 : $branch); + $moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'bug', $startModuleID = 0, ($branch === 'all' or !in_array($branch, array_keys($branches))) ? 0 : $branch); if(empty($moduleOptionMenu)) die(js::locate(helper::createLink('tree', 'browse', "productID=$productID&view=story"))); /* Get products and projects. */