File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Product Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,7 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
174
174
$ storeCurrency = $ this ->_storeManager ->getStore ($ storeId )->getBaseCurrencyCode ();
175
175
$ rate = $ this ->_currencyFactory ->create ()->load ($ websiteBaseCurrency )
176
176
->getRate ($ storeCurrency );
177
- if (!$ rate ) {
178
- $ rate = 1 ;
179
- }
177
+ $ rate ?: $ rate = 1 ;
180
178
$ newPrice = $ object ->getPrice () * $ rate ;
181
179
} else {
182
180
$ newPrice = $ object ->getPrice ();
@@ -587,6 +585,8 @@ public function getPriceTypes()
587
585
}
588
586
589
587
/**
588
+ * Returns metadata poll.
589
+ *
590
590
* @return \Magento\Framework\EntityManager\MetadataPool
591
591
*/
592
592
private function getMetadataPool ()
You can’t perform that action at this time.
0 commit comments