Skip to content

Commit

Permalink
Fixed skipping of empty option
Browse files Browse the repository at this point in the history
  • Loading branch information
klimart committed Jul 22, 2018
1 parent 7674eb1 commit 4aa808e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function resolve(
if (is_array($attributeOptions)) {
/** @var \Magento\Eav\Api\Data\AttributeOptionInterface $option */
foreach ($attributeOptions as $option) {
if (!$option->getValue()) {
if ($option->getValue() === '') {
continue;
}

Expand Down

0 comments on commit 4aa808e

Please sign in to comment.