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.
2 parents 6d45001 + 6a3ecbc commit 90a8eadCopy full SHA for 90a8ead
app/code/Magento/Eav/Model/Entity/AbstractEntity.php
@@ -1296,11 +1296,11 @@ protected function _collectSaveData($newObject)
1296
} elseif (!is_numeric($v) && $v !== $origData[$k] || is_numeric($v) && $v != $origData[$k]) {
1297
$update[$attrId] = [
1298
'value_id' => $attribute->getBackend()->getEntityValueId($newObject),
1299
- 'value' => $v,
+ 'value' => is_array($v) ? array_shift($v) : $v,//@TODO: MAGETWO-44182,
1300
];
1301
}
1302
} elseif (!$this->_isAttributeValueEmpty($attribute, $v)) {
1303
- $insert[$attrId] = $v;
+ $insert[$attrId] = is_array($v) ? array_shift($v) : $v;//@TODO: MAGETWO-44182
1304
1305
1306
0 commit comments