Skip to content

Commit 8dbebfd

Browse files
committed
AC-11970: Imposible to reorder configurable products with one checkbox selected custom option
1 parent 9c48c55 commit 8dbebfd

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/Catalog/Model/Product/Option/Type

1 file changed

+1
-3
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/Select.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ public function validateUserValue($values)
9090
}
9191
} else {
9292
if (!$this->_isSingleSelection()) {
93-
if (is_string($value)) {
94-
$value = explode(',', $value);
95-
}
93+
$value = is_string($value) ? explode(',', $value) : [$value];
9694
$valuesCollection = $option->getOptionValuesByOptionId($value, $this->getProduct()->getStoreId());
9795
$valueCount = is_array($value) ? count($value) : 0;
9896
if ($valuesCollection->count() != $valueCount) {

0 commit comments

Comments
 (0)