File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,16 @@ protected function _getWebsiteCurrencyRates()
97
97
);
98
98
foreach ($ this ->_storeManager ->getWebsites () as $ website ) {
99
99
/* @var $website \Magento\Store\Model\Website */
100
- if ($ website ->getBaseCurrencyCode () != $ baseCurrency ) {
100
+ $ websiteBaseCurrency = $ website ->getBaseCurrencyCode ();
101
+ if ($ websiteBaseCurrency !== $ baseCurrency ) {
101
102
$ rate = $ this ->_currencyFactory ->create ()->load (
102
103
$ baseCurrency
103
- )->getRate (
104
- $ website ->getBaseCurrencyCode ()
105
- );
104
+ )->getRate ($ websiteBaseCurrency );
106
105
if (!$ rate ) {
107
106
$ rate = 1 ;
108
107
}
109
108
$ this ->_rates [$ website ->getId ()] = [
110
- 'code ' => $ website -> getBaseCurrencyCode () ,
109
+ 'code ' => $ websiteBaseCurrency ,
111
110
'rate ' => $ rate ,
112
111
];
113
112
} else {
You can’t perform that action at this time.
0 commit comments