Skip to content

Commit 64ee8e9

Browse files
committed
Resolved issue if checkbox custom option is not required
1 parent 0aa3191 commit 64ee8e9

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function validateUserValue($values)
7171
}
7272
if (!$this->_isSingleSelection()) {
7373
$valuesCollection = $option->getOptionValuesByOptionId($value, $this->getProduct()->getStoreId())->load();
74-
$valueCount = is_array($value) ? count($value) : 1;
74+
$valueCount = is_array($value) ? count($value) : 0;
7575
if ($valuesCollection->count() != $valueCount) {
7676
$this->setIsValid(false);
7777
throw new LocalizedException(

0 commit comments

Comments
 (0)