Skip to content

Commit fe1f062

Browse files
author
Fred Orosko Dias
committed
MAGETWO-61828: Text swatch "zero" not shown
1 parent 732d445 commit fe1f062

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Swatches/Helper

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public function getSwatchesByOptionsId(array $optionIds)
419419
foreach ($swatchCollection as $item) {
420420
if ($item['type'] != Swatch::SWATCH_TYPE_TEXTUAL) {
421421
$swatches[$item['option_id']] = $item->getData();
422-
} elseif ($item['store_id'] == $currentStoreId && $item['value']) {
422+
} elseif ($item['store_id'] == $currentStoreId && $item['value'] != '') {
423423
$fallbackValues[$item['option_id']][$currentStoreId] = $item->getData();
424424
} elseif ($item['store_id'] == self::DEFAULT_STORE_ID) {
425425
$fallbackValues[$item['option_id']][self::DEFAULT_STORE_ID] = $item->getData();

0 commit comments

Comments
 (0)