Skip to content

Commit 795f9b6

Browse files
committed
Merge branch 'pr-35608' into 2.4-develop-prs
2 parents 20f4b88 + e7f3079 commit 795f9b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Catalog/Model/Product/Type/AbstractType.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,10 @@ protected function _prepareOptions(\Magento\Framework\DataObject $buyRequest, $p
591591

592592
if ($product->getSkipCheckRequiredOption() !== true) {
593593
$group->validateUserValue($optionsFromRequest);
594-
} elseif ($optionsFromRequest !== null && isset($optionsFromRequest[$option->getId()])) {
594+
} elseif ($optionsFromRequest !== null
595+
&& isset($optionsFromRequest[$option->getId()])
596+
&& $optionsFromRequest[$option->getId()] !== ''
597+
) {
595598
if (is_array($optionsFromRequest[$option->getId()])) {
596599
$group->validateUserValue($optionsFromRequest);
597600
} else {

0 commit comments

Comments
 (0)