Skip to content

Commit a573bfb

Browse files
committed
Issue #25676 Method checkIsAllRequiredOptions for Bundle product must not allow option without actual value
1 parent 148d6cc commit a573bfb

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Bundle/Model/Product

1 file changed

+1
-1
lines changed

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ protected function checkIsAllRequiredOptions($product, $isStrictProcessMode, $op
12631263
{
12641264
if (!$product->getSkipCheckRequiredOption() && $isStrictProcessMode) {
12651265
foreach ($optionsCollection->getItems() as $option) {
1266-
if ($option->getRequired() && !isset($options[$option->getId()])) {
1266+
if ($option->getRequired() && empty($options[$option->getId()])) {
12671267
throw new \Magento\Framework\Exception\LocalizedException(
12681268
__('Please select all required options.')
12691269
);

0 commit comments

Comments
 (0)