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");?>