Skip to content

Commit

Permalink
#22760 static-test-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed May 10, 2019
1 parent 70281da commit ccecc7c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
$storeCurrency = $this->_storeManager->getStore($storeId)->getBaseCurrencyCode();
$rate = $this->_currencyFactory->create()->load($websiteBaseCurrency)
->getRate($storeCurrency);
if (!$rate) {
$rate = 1;
}
$rate ?: $rate = 1;
$newPrice = $object->getPrice() * $rate;
} else {
$newPrice = $object->getPrice();
Expand Down Expand Up @@ -587,6 +585,8 @@ public function getPriceTypes()
}

/**
* Returns metadata poll.
*
* @return \Magento\Framework\EntityManager\MetadataPool
*/
private function getMetadataPool()
Expand Down

0 comments on commit ccecc7c

Please sign in to comment.