File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Backend/Block/Dashboard Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Backend \Block \Dashboard ;
7
7
8
+ use Magento \Store \Model \Store ;
9
+
8
10
/**
9
11
* Adminhtml dashboard bar block
10
12
*
@@ -73,6 +75,7 @@ public function setCurrency($currency)
73
75
* Retrieve currency model if not set then return currency model for current store
74
76
*
75
77
* @return \Magento\Directory\Model\Currency
78
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
76
79
*/
77
80
public function getCurrency ()
78
81
{
@@ -90,7 +93,8 @@ public function getCurrency()
90
93
$ this ->getRequest ()->getParam ('group ' )
91
94
)->getWebsite ()->getBaseCurrency ();
92
95
} else {
93
- $ this ->_currentCurrencyCode = $ this ->_storeManager ->getStore ()->getBaseCurrency ();
96
+ $ this ->_currentCurrencyCode = $ this ->_storeManager ->getStore (Store::DEFAULT_STORE_ID )
97
+ ->getBaseCurrency ();
94
98
}
95
99
}
96
100
You can’t perform that action at this time.
0 commit comments