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


 - Merge Pull Request #11807 from manuelson/magento2:feature/11341_backport
 - Merged commits:
   1. 4e24f73
  • Loading branch information
orlangur committed Nov 29, 2017
2 parents cedfb0c + 4e24f73 commit 598ecd5
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 598ecd5

Please sign in to comment.