Skip to content

Commit

Permalink
MAGETWO-70838: 2.1 - Allow to use text swatch 0 #10282
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Jul 18, 2017
2 parents eebd8f4 + 547ee36 commit b92d4e3
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 @@ -430,7 +430,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
if ($this->isOptionForDelete($attribute, $optionId)) {
continue;
}
if (empty($option[0])) {
if (!isset($option[0]) || $option[0] === '') {
return false;
}
}
Expand Down

0 comments on commit b92d4e3

Please sign in to comment.