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 32
32
use Magento \Ui \DataProvider \Mapper \FormElement as FormElementMapper ;
33
33
use Magento \Ui \DataProvider \Mapper \MetaProperties as MetaPropertiesMapper ;
34
34
use Magento \Eav \Model \ResourceModel \Entity \Attribute \CollectionFactory as AttributeCollectionFactory ;
35
+ use \Magento \Catalog \Model \Product \Type as ProductType ;
35
36
36
37
/**
37
38
* Class Eav
@@ -399,7 +400,11 @@ public function modifyData(array $data)
399
400
foreach ($ attributes as $ attribute ) {
400
401
if (null !== ($ attributeValue = $ this ->setupAttributeData ($ attribute ))) {
401
402
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
+ }
403
408
}
404
409
$ data [$ productId ][self ::DATA_SOURCE_DEFAULT ][$ attribute ->getAttributeCode ()] = $ attributeValue ;
405
410
}
You can’t perform that action at this time.
0 commit comments