From 307c4b3a5f885c6950792f0547ebcad8aa345a58 Mon Sep 17 00:00:00 2001 From: zenggang Date: Wed, 21 Sep 2022 08:25:09 +0000 Subject: [PATCH] * Code for feedback#957 --- module/product/view/browse.html.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index dc25677ab2..8bf50fe04a 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -387,8 +387,10 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
createLink('story', 'batchEdit', "productID=$productID&projectID=$projectID&branch=$branch&storyType=$storyType"); + foreach($stories as $story) $storyProductIds[$story->product] = $story->product; + $storyProductID = count($storyProductIds) > 1 ? 0 : $productID; + $disabled = $canBatchEdit ? '' : "disabled='disabled'"; + $actionLink = $this->createLink('story', 'batchEdit', "productID=$storyProductID&projectID=$projectID&branch=$branch&storyType=$storyType"); ?> edit, "data-form-action='$actionLink' $disabled");?>