We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f36cd commit 3d10764Copy full SHA for 3d10764
app/code/Magento/Eav/Model/Entity/Attribute/Backend/JsonEncoded.php
@@ -41,7 +41,7 @@ public function beforeSave($object)
41
{
42
// parent::beforeSave() is not called intentionally
43
$attrCode = $this->getAttribute()->getAttributeCode();
44
- if ($object->hasData($attrCode)) {
+ if ($object->hasData($attrCode) && !is_string($object->getData($attrCode))) {
45
$object->setData($attrCode, $this->jsonSerializer->serialize($object->getData($attrCode)));
46
}
47
return $this;
0 commit comments