Skip to content

Commit b92c1c4

Browse files
committed
MAGETWO-66160: [GitHub][PR] Allows you to have 0 as a option #7701
- Merge Pull Request #7701 from Corefix/magento2:patch-6
2 parents 3c34e1d + c5cddd9 commit b92c1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Model/Plugin/EavAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
446446
if ($this->isOptionForDelete($attribute, $optionId)) {
447447
continue;
448448
}
449-
if (empty($option[0])) {
449+
if (!isset($option[0]) || $option[0] === '') {
450450
return false;
451451
}
452452
}

0 commit comments

Comments
 (0)