From 7bf756ec4e48afcb3ac7402320951c28144797ea Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 29 Aug 2024 16:48:22 +0800 Subject: [PATCH] * [bug#54686,done,0.2h] Remove the batch change plan button in or interface. --- module/product/ui/browse.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/ui/browse.html.php b/module/product/ui/browse.html.php index 9933ea00b0..d6cc52f4b8 100644 --- a/module/product/ui/browse.html.php +++ b/module/product/ui/browse.html.php @@ -248,7 +248,7 @@ $fnGenerateFootToolbar = function() use ($lang, $app, $product, $productID, $pro $canBatchClose = hasPriv($storyType, 'batchClose') && strtolower($browseType) != 'closedbyme' && strtolower($browseType) != 'closedstory'; $canBatchReview = $canBeChanged && hasPriv($storyType, 'batchReview'); $canBatchAssignTo = $canBeChanged && hasPriv($storyType, 'batchAssignTo'); - $canBatchChangePlan = $canBeChanged && hasPriv($storyType, 'batchChangePlan') && $productID && $product && (($product->type != 'normal' && $branchID != 'all') || $product->type == 'normal'); + $canBatchChangePlan = $canBeChanged && hasPriv($storyType, 'batchChangePlan') && $config->vision == 'rnd' && $productID && $product && (($product->type != 'normal' && $branchID != 'all') || $product->type == 'normal'); } $canBatchChangeGrade = $canBeChanged && hasPriv($storyType, 'batchChangeGrade') && count($gradePairs) > 1 && $config->{$storyType}->gradeRule == 'cross' && !$isProjectStory;