From 4e24f7324a4e46e629b08275e613b08135061f68 Mon Sep 17 00:00:00 2001 From: Manu Gonzalez Date: Fri, 27 Oct 2017 12:53:15 +0200 Subject: [PATCH] backport 2.1 --- 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 2ec831083f675..f884b56c40052 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 == '') {