Skip to content

Commit

Permalink
MAGETWO-84688: [backport 2.1] Attribute category_ids issue #11389 #11807
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko committed Nov 29, 2017
2 parents cedfb0c + 598ecd5 commit f90a91a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/Magento/Catalog/Block/Product/View/Attributes.php
Expand Up @@ -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 == '') {
Expand Down

0 comments on commit f90a91a

Please sign in to comment.