Skip to content

Commit

Permalink
Merge pull request #1775 from magento-engcom/2.1-develop-prs
Browse files Browse the repository at this point in the history
Public Pull Requests

#11807 [backport 2.1] Attribute category_ids issue #11389 by @manuelson

Fixed Public Issues

#11341 Attribute category_ids issue
  • Loading branch information
Oleksii Korshenko authored Nov 30, 2017
2 parents cedfb0c + f90a91a commit bf06306
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
Original file line number Diff line number Diff line change
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 bf06306

Please sign in to comment.