File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Product Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -119,23 +119,21 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
119
119
$ optionId = $ connection ->fetchOne ($ statement );
120
120
121
121
if ($ optionId ) {
122
- if ($ object ->getStoreId () == '0 ' ) {
123
- $ data = $ this ->_prepareDataForTable (
124
- new \Magento \Framework \DataObject (
125
- ['price ' => $ object ->getPrice (), 'price_type ' => $ object ->getPriceType ()]
126
- ),
127
- $ priceTable
128
- );
122
+ $ data = $ this ->_prepareDataForTable (
123
+ new \Magento \Framework \DataObject (
124
+ ['price ' => $ object ->getPrice (), 'price_type ' => $ object ->getPriceType ()]
125
+ ),
126
+ $ priceTable
127
+ );
129
128
130
- $ connection ->update (
131
- $ priceTable ,
132
- $ data ,
133
- [
134
- 'option_id = ? ' => $ object ->getId (),
135
- 'store_id = ? ' => \Magento \Store \Model \Store::DEFAULT_STORE_ID
136
- ]
137
- );
138
- }
129
+ $ connection ->update (
130
+ $ priceTable ,
131
+ $ data ,
132
+ [
133
+ 'option_id = ? ' => $ object ->getId (),
134
+ 'store_id = ? ' => \Magento \Store \Model \Store::DEFAULT_STORE_ID
135
+ ]
136
+ );
139
137
} else {
140
138
$ data = $ this ->_prepareDataForTable (
141
139
new \Magento \Framework \DataObject (
You can’t perform that action at this time.
0 commit comments