This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Product/Option Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
101
101
$ price = (double )sprintf ('%F ' , $ formattedPrice );
102
102
$ priceType = $ object ->getPriceType ();
103
103
104
- if ($ object -> getPrice ( ) && $ priceType ) {
104
+ if (isset ( $ price ) && $ priceType ) {
105
105
//save for store_id = 0
106
106
$ select = $ this ->getConnection ()->select ()->from (
107
107
$ priceTable ,
@@ -143,7 +143,7 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
143
143
144
144
if ($ scope == \Magento \Store \Model \Store::PRICE_SCOPE_WEBSITE
145
145
&& $ priceType
146
- && $ object -> getPrice ( )
146
+ && isset ( $ price )
147
147
&& $ object ->getStoreId () != \Magento \Store \Model \Store::DEFAULT_STORE_ID
148
148
) {
149
149
$ baseCurrency = $ this ->_config ->getValue (
@@ -199,7 +199,7 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
199
199
}
200
200
} else {
201
201
if ($ scope == \Magento \Store \Model \Store::PRICE_SCOPE_WEBSITE
202
- && !$ object -> getPrice ( )
202
+ && !isset ( $ price )
203
203
&& !$ priceType
204
204
) {
205
205
$ storeIds = $ this ->_storeManager ->getStore ($ object ->getStoreId ())->getWebsite ()->getStoreIds ();
You can’t perform that action at this time.
0 commit comments