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.
1 parent 9c48c55 commit 8dbebfdCopy full SHA for 8dbebfd
app/code/Magento/Catalog/Model/Product/Option/Type/Select.php
@@ -90,9 +90,7 @@ public function validateUserValue($values)
90
}
91
} else {
92
if (!$this->_isSingleSelection()) {
93
- if (is_string($value)) {
94
- $value = explode(',', $value);
95
- }
+ $value = is_string($value) ? explode(',', $value) : [$value];
96
$valuesCollection = $option->getOptionValuesByOptionId($value, $this->getProduct()->getStoreId());
97
$valueCount = is_array($value) ? count($value) : 0;
98
if ($valuesCollection->count() != $valueCount) {
0 commit comments