Skip to content

Commit

Permalink
MAGETWO-61828: Text swatch "zero" not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Orosko Dias committed Dec 9, 2016
1 parent 732d445 commit fe1f062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Swatches/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function getSwatchesByOptionsId(array $optionIds)
foreach ($swatchCollection as $item) {
if ($item['type'] != Swatch::SWATCH_TYPE_TEXTUAL) {
$swatches[$item['option_id']] = $item->getData();
} elseif ($item['store_id'] == $currentStoreId && $item['value']) {
} elseif ($item['store_id'] == $currentStoreId && $item['value'] != '') {
$fallbackValues[$item['option_id']][$currentStoreId] = $item->getData();
} elseif ($item['store_id'] == self::DEFAULT_STORE_ID) {
$fallbackValues[$item['option_id']][self::DEFAULT_STORE_ID] = $item->getData();
Expand Down

0 comments on commit fe1f062

Please sign in to comment.