From ec54eb4a14d5e1fb277bdc6fe46a6b417a139935 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 14 Jan 2026 11:37:50 +0800 Subject: [PATCH] * [refac bug #56777] If it is a multi-branch multi-platform product, and all branches are selected, it is not allowed to batch change the module. --- module/bug/ui/browse.html.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/bug/ui/browse.html.php b/module/bug/ui/browse.html.php index db7d1ad239..6478dc4bac 100644 --- a/module/bug/ui/browse.html.php +++ b/module/bug/ui/browse.html.php @@ -100,7 +100,10 @@ $canBatchResolve = $canBeChanged && hasPriv('bug', 'batchResolve'); $canBatchAssignTo = $canBeChanged && hasPriv('bug', 'batchAssignTo'); $canBatchClose = hasPriv('bug', 'batchClose'); $canManageModule = hasPriv('tree', 'browse'); -$canBatchAction = $canBatchEdit || $canBatchConfirm || $canBatchClose || $canBatchActivate || $canBatchChangeBranch || $canBatchChangeModule || $canBatchResolve || $canBatchAssignTo; + +/* 如果是多分支多平台产品,且选定的是所有分支,则不允许批量更改所属模块。 If it is a multi-branch multi-platform product, and all branches are selected, it is not allowed to batch change the module. */ +if($product->type != 'normal' && $branch == 'all') $canBatchChangeModule = false; +$canBatchAction = $canBatchEdit || $canBatchConfirm || $canBatchClose || $canBatchActivate || $canBatchChangeBranch || $canBatchChangeModule || $canBatchResolve || $canBatchAssignTo; if(!isonlybody()) {