File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/Backend/Block/Dashboard Expand file tree Collapse file tree 1 file changed +9
-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
*
@@ -23,6 +25,8 @@ class Bar extends \Magento\Backend\Block\Dashboard\AbstractDashboard
23
25
protected $ _currentCurrencyCode = null ;
24
26
25
27
/**
28
+ * Get totals
29
+ *
26
30
* @return array
27
31
*/
28
32
public function getTotals ()
@@ -31,6 +35,8 @@ public function getTotals()
31
35
}
32
36
33
37
/**
38
+ * Add total
39
+ *
34
40
* @param string $label
35
41
* @param float $value
36
42
* @param bool $isQuantity
@@ -73,6 +79,7 @@ public function setCurrency($currency)
73
79
* Retrieve currency model if not set then return currency model for current store
74
80
*
75
81
* @return \Magento\Directory\Model\Currency
82
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
76
83
*/
77
84
public function getCurrency ()
78
85
{
@@ -90,7 +97,8 @@ public function getCurrency()
90
97
$ this ->getRequest ()->getParam ('group ' )
91
98
)->getWebsite ()->getBaseCurrency ();
92
99
} else {
93
- $ this ->_currentCurrencyCode = $ this ->_storeManager ->getStore ()->getBaseCurrency ();
100
+ $ this ->_currentCurrencyCode = $ this ->_storeManager ->getStore (Store::DEFAULT_STORE_ID )
101
+ ->getBaseCurrency ();
94
102
}
95
103
}
96
104
You can’t perform that action at this time.
0 commit comments