We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abfaf16 + b9617bc commit 360478bCopy full SHA for 360478b
app/code/Magento/Catalog/Model/Product/Option/Type/Select.php
@@ -71,7 +71,7 @@ public function validateUserValue($values)
71
}
72
if (!$this->_isSingleSelection()) {
73
$valuesCollection = $option->getOptionValuesByOptionId($value, $this->getProduct()->getStoreId())->load();
74
- $valueCount = is_array($value) ? count($value) : 1;
+ $valueCount = is_array($value) ? count($value) : 0;
75
if ($valuesCollection->count() != $valueCount) {
76
$this->setIsValid(false);
77
throw new LocalizedException(
0 commit comments