Skip to content

Commit

Permalink
Allows you to have 0 as a option
Browse files Browse the repository at this point in the history
Corrects validation of options, to allow you to have 0 as a value
  • Loading branch information
Corefix authored Dec 6, 2016
1 parent 0bb4d6c commit f2c66b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Swatches/Model/Plugin/EavAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
if ($this->isOptionForDelete($attribute, $optionId)) {
continue;
}
if (empty($option[0])) {
if ($option[0] === '') {
return false;
}
}
Expand Down

0 comments on commit f2c66b6

Please sign in to comment.