From f77b1438db9762d2ca004c315ac929ae3f9d3958 Mon Sep 17 00:00:00 2001 From: Manu Gonzalez Date: Fri, 27 Oct 2017 13:47:51 +0200 Subject: [PATCH] backport 2.3 --- app/code/Magento/Catalog/Block/Product/View/Attributes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Catalog/Block/Product/View/Attributes.php b/app/code/Magento/Catalog/Block/Product/View/Attributes.php index fbdda684343b5..8607f74ca514a 100644 --- a/app/code/Magento/Catalog/Block/Product/View/Attributes.php +++ b/app/code/Magento/Catalog/Block/Product/View/Attributes.php @@ -81,8 +81,9 @@ public function getAdditionalData(array $excludeAttr = []) $attributes = $product->getAttributes(); foreach ($attributes as $attribute) { if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) { - $value = $attribute->getFrontend()->getValue($product); - + if (is_array($value = $attribute->getFrontend()->getValue($product))) { + continue; + } if (!$product->hasData($attribute->getAttributeCode())) { $value = __('N/A'); } elseif ((string)$value == '') {