Skip to content

Commit 4a6769f

Browse files
committed
MAGETWO-91440: Unassigned Attribute Values Render as N/A in Product Comparison block
- fixing display issues when an attribute is empty for all products in the list to not show at all
1 parent 58328f2 commit 4a6769f

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/templates/product/compare

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/compare/list.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<?php $block->getImage($item, 'product_small_image')->toHtml(); ?>
117117
<?php break;
118118
default: ?>
119-
<?= /* @escapeNotVerified */ $index . '-'.$helper->productAttribute($item, $block->getProductAttributeValue($item, $attribute), $attribute->getAttributeCode()) ?>
119+
<?= /* @escapeNotVerified */ $helper->productAttribute($item, $block->getProductAttributeValue($item, $attribute), $attribute->getAttributeCode()) ?>
120120
<?php break;
121121
} ?>
122122
</div>

0 commit comments

Comments
 (0)