Skip to content

Commit d6f6f70

Browse files
arkadiychYaroslav Voronoy
authored andcommitted
MAGETWO-47255: Dashboard: Nothing is displayed if Use Aggregated Data setting is turned on
- added missed property into the class - removed "(Beta)" from the message
1 parent d6a56f0 commit d6f6f70

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

app/code/Magento/Backend/Helper/Dashboard/Order.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,23 @@ class Order extends \Magento\Backend\Helper\Dashboard\AbstractDashboard
1515
*/
1616
protected $_orderCollection;
1717

18+
/**
19+
* @var \Magento\Store\Model\StoreManagerInterface
20+
*/
21+
protected $_storeManager;
22+
1823
/**
1924
* @param \Magento\Framework\App\Helper\Context $context
2025
* @param \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection
26+
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
2127
*/
2228
public function __construct(
2329
\Magento\Framework\App\Helper\Context $context,
24-
\Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection
30+
\Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection,
31+
\Magento\Store\Model\StoreManagerInterface $storeManager
2532
) {
2633
$this->_orderCollection = $orderCollection;
34+
$this->_storeManager = $storeManager;
2735
parent::__construct(
2836
$context
2937
);

app/code/Magento/Sales/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<group id="dashboard" translate="label,comment" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
110110
<label>Dashboard</label>
111111
<field id="use_aggregated_data" translate="label" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0">
112-
<label>Use Aggregated Data (beta)</label>
112+
<label>Use Aggregated Data</label>
113113
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
114114
<comment>Improves dashboard performance but provides non-realtime data.</comment>
115115
</field>

app/code/Magento/Sales/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ Comma-separated,Comma-separated
615615
"We'll use the default description above if you leave this empty.","We'll use the default description above if you leave this empty."
616616
"Multi-address Error to Show in Shopping Cart","Multi-address Error to Show in Shopping Cart"
617617
"We'll use the default error above if you leave this empty.","We'll use the default error above if you leave this empty."
618-
"Use Aggregated Data (beta)","Use Aggregated Data (beta)"
618+
"Use Aggregated Data","Use Aggregated Data"
619619
"Sales Emails","Sales Emails"
620620
"New Order Confirmation Email Sender","New Order Confirmation Email Sender"
621621
"New Order Confirmation Template","New Order Confirmation Template"

0 commit comments

Comments
 (0)