Skip to content

Commit bf06306

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1775 from magento-engcom/2.1-develop-prs
Public Pull Requests #11807 [backport 2.1] Attribute category_ids issue #11389 by @manuelson Fixed Public Issues #11341 Attribute category_ids issue
2 parents cedfb0c + f90a91a commit bf06306

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Catalog/Block/Product/View/Attributes.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ public function getAdditionalData(array $excludeAttr = [])
8181
$attributes = $product->getAttributes();
8282
foreach ($attributes as $attribute) {
8383
if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) {
84-
$value = $attribute->getFrontend()->getValue($product);
85-
84+
if (is_array($value = $attribute->getFrontend()->getValue($product))) {
85+
continue;
86+
}
8687
if (!$product->hasData($attribute->getAttributeCode())) {
8788
$value = __('N/A');
8889
} elseif ((string)$value == '') {

0 commit comments

Comments
 (0)