Skip to content

Commit b123294

Browse files
authored
MAGETWO-66159: [GitHub][PR] MAGETWO-61828: Text swatch "zero" not shown #7743
2 parents a56b509 + c3ba85a commit b123294

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
@@ -429,7 +429,7 @@ public function getSwatchesByOptionsId(array $optionIds)
429429
foreach ($swatchCollection as $item) {
430430
if ($item['type'] != Swatch::SWATCH_TYPE_TEXTUAL) {
431431
$swatches[$item['option_id']] = $item->getData();
432-
} elseif ($item['store_id'] == $currentStoreId && $item['value']) {
432+
} elseif ($item['store_id'] == $currentStoreId && $item['value'] != '') {
433433
$fallbackValues[$item['option_id']][$currentStoreId] = $item->getData();
434434
} elseif ($item['store_id'] == self::DEFAULT_STORE_ID) {
435435
$fallbackValues[$item['option_id']][self::DEFAULT_STORE_ID] = $item->getData();

0 commit comments

Comments
 (0)