Skip to content

Commit a0a2474

Browse files
author
Oleksii Korshenko
authored
MAGETWO-81916: Attribute category_ids issue magento#11389
2 parents f748f11 + 5983429 commit a0a2474

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,16 @@ 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 == '') {
8990
$value = __('No');
9091
} elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) {
9192
$value = $this->priceCurrency->convertAndFormat($value);
9293
}
93-
9494
if ($value instanceof Phrase || (is_string($value) && strlen($value))) {
9595
$data[$attribute->getAttributeCode()] = [
9696
'label' => __($attribute->getStoreLabel()),

0 commit comments

Comments
 (0)