Skip to content

Commit a56b509

Browse files
authored
MAGETWO-66160: [GitHub][PR] Allows you to have 0 as a option #7701
2 parents 8c211e7 + b92c1c4 commit a56b509

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
@@ -444,7 +444,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
444444
if ($this->isOptionForDelete($attribute, $optionId)) {
445445
continue;
446446
}
447-
if (empty($option[0])) {
447+
if (!isset($option[0]) || $option[0] === '') {
448448
return false;
449449
}
450450
}

0 commit comments

Comments
 (0)