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 823b081 commit 62afb15Copy full SHA for 62afb15
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php
@@ -353,7 +353,7 @@ public function modifyData(array $data)
353
354
foreach ($attributes as $attribute) {
355
if (null !== ($attributeValue = $this->setupAttributeData($attribute))) {
356
- if ($attribute->getFrontendInput() === 'price') {
+ if ($attribute->getFrontendInput() === 'price' && is_scalar($attributeValue)) {
357
$attributeValue = number_format((float)$attributeValue, 2);
358
}
359
$data[$productId][self::DATA_SOURCE_DEFAULT][$attribute->getAttributeCode()] = $attributeValue;
0 commit comments