File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3232use Magento \Ui \DataProvider \Mapper \FormElement as FormElementMapper ;
3333use Magento \Ui \DataProvider \Mapper \MetaProperties as MetaPropertiesMapper ;
3434use Magento \Eav \Model \ResourceModel \Entity \Attribute \CollectionFactory as AttributeCollectionFactory ;
35+ use \Magento \Catalog \Model \Product \Type as ProductType ;
3536
3637/**
3738 * Class Eav
@@ -399,7 +400,11 @@ public function modifyData(array $data)
399400 foreach ($ attributes as $ attribute ) {
400401 if (null !== ($ attributeValue = $ this ->setupAttributeData ($ attribute ))) {
401402 if ($ attribute ->getFrontendInput () === 'price ' && is_scalar ($ attributeValue )) {
402- $ attributeValue = $ this ->formatPrice ($ attributeValue );
403+ if ($ this ->locator ->getProduct ()->getTypeId () !== ProductType::TYPE_BUNDLE
404+ || $ attribute ->getAttributeCode () !== ProductAttributeInterface::CODE_SPECIAL_PRICE
405+ ) {
406+ $ attributeValue = $ this ->formatPrice ($ attributeValue );
407+ }
403408 }
404409 $ data [$ productId ][self ::DATA_SOURCE_DEFAULT ][$ attribute ->getAttributeCode ()] = $ attributeValue ;
405410 }
You can’t perform that action at this time.
0 commit comments