Skip to content

Commit 7fe2b76

Browse files
author
Joan He
authored
Merge pull request #112 from magento-engcom/MAGETWO-89914
MAGETWO-89914: Magento\Quote\Api\CartItemRepositoryTest::testGetList …
2 parents 3a1a7eb + 26d313e commit 7fe2b76

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public function validateUserValue($values)
7171
}
7272
if (!$this->_isSingleSelection()) {
7373
$valuesCollection = $option->getOptionValuesByOptionId($value, $this->getProduct()->getStoreId())->load();
74-
if ($valuesCollection->count() != count($value)) {
74+
$valueCount = is_array($value) ? count($value) : 1;
75+
if ($valuesCollection->count() != $valueCount) {
7576
$this->setIsValid(false);
7677
throw new LocalizedException(
7778
__(

0 commit comments

Comments
 (0)