Skip to content

Commit 7fa400a

Browse files
authored
Merge pull request #10147 from magento-gl/spartans_pr_17102025_AC-15856
[Spartans] Bug Fix Deliver
2 parents 2433855 + fdfb025 commit 7fa400a

File tree

3 files changed

+716
-1
lines changed

3 files changed

+716
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductCustomAttributes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ function (AttributeInterface $customAttribute) {
108108
}
109109
$attributeValue = $productData[$attributeCode] ?? "";
110110
if (is_array($attributeValue)) {
111-
$attributeValue = implode(',', $attributeValue);
111+
$attributeValue = (count($attributeValue) != count($attributeValue, COUNT_RECURSIVE))
112+
? json_encode($attributeValue)
113+
: implode(',', $attributeValue);
112114
}
113115
$customAttributes[] = [
114116
'attribute_code' => $attributeCode,

0 commit comments

Comments
 (0)