Skip to content

Commit 90a8ead

Browse files
author
Oleksandr Karpenko
committed
Merge remote-tracking branch 'origin/MAGETWO-44182mainline' into BUGS
2 parents 6d45001 + 6a3ecbc commit 90a8ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Eav/Model/Entity/AbstractEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,11 +1296,11 @@ protected function _collectSaveData($newObject)
12961296
} elseif (!is_numeric($v) && $v !== $origData[$k] || is_numeric($v) && $v != $origData[$k]) {
12971297
$update[$attrId] = [
12981298
'value_id' => $attribute->getBackend()->getEntityValueId($newObject),
1299-
'value' => $v,
1299+
'value' => is_array($v) ? array_shift($v) : $v,//@TODO: MAGETWO-44182,
13001300
];
13011301
}
13021302
} elseif (!$this->_isAttributeValueEmpty($attribute, $v)) {
1303-
$insert[$attrId] = $v;
1303+
$insert[$attrId] = is_array($v) ? array_shift($v) : $v;//@TODO: MAGETWO-44182
13041304
}
13051305
}
13061306

0 commit comments

Comments
 (0)