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
 - Merge Pull Request #10282 from ihor-sviziev/magento2:allow-to-use-text-swatch-0
 - Merged commits:
   1. 2b46c8a
   2. bc8877a
  • Loading branch information
Oleksii Korshenko committed Jul 18, 2017
2 parents eebd8f4 + bc8877a commit 547ee36
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 547ee36

Please sign in to comment.