Skip to content

Commit 5add111

Browse files
author
Cari Spruiell
committed
MAGETWO-50789: Fix incorrect getter methods
- correct method implementations
1 parent 45797b9 commit 5add111

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ protected function _initCollection()
6161
if ($this->getParam('store')) {
6262
$this->_collection->addFieldToFilter('store_id', $this->getParam('store'));
6363
} elseif ($this->getParam('website')) {
64-
$storeIds = $this->_storeManager->getWebsite($this->getParam('website'))->getStoreIds();
64+
$storeIds = $this->getStoreManager()->getWebsite($this->getParam('website'))->getStoreIds();
6565
$this->_collection->addFieldToFilter('store_id', ['in' => implode(',', $storeIds)]);
6666
} elseif ($this->getParam('group')) {
67-
$storeIds = $this->_storeManager->getGroup($this->getParam('group'))->getStoreIds();
67+
$storeIds = $this->getStoreManager()->getGroup($this->getParam('group'))->getStoreIds();
6868
$this->_collection->addFieldToFilter('store_id', ['in' => implode(',', $storeIds)]);
6969
} elseif (!$this->_collection->isLive()) {
7070
$this->_collection->addFieldToFilter(
7171
'store_id',
72-
['eq' => $this->_storeManager->getStore(\Magento\Store\Model\Store::ADMIN_CODE)->getId()]
72+
['eq' => $this->getStoreManager()->getStore(\Magento\Store\Model\Store::ADMIN_CODE)->getId()]
7373
);
7474
}
7575
$this->_collection->load();

app/code/Magento/SalesRule/Block/Adminhtml/Promo/Quote/Edit/Tab/Actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function addTabToForm($model, $fieldsetId = 'actions_fieldset', $formN
169169
{
170170
if (!$model) {
171171
$id = $this->getRequest()->getParam('id');
172-
$model = $this->ruleFactory->create();
172+
$model = $this->getRuleFactory()->create();
173173
$model->load($id);
174174
}
175175

app/code/Magento/SalesRule/Block/Adminhtml/Promo/Quote/Edit/Tab/Conditions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected function addTabToForm($model, $fieldsetId = 'conditions_fieldset', $fo
160160
{
161161
if (!$model) {
162162
$id = $this->getRequest()->getParam('id');
163-
$model = $this->ruleFactory->create();
163+
$model = $this->getRuleFactory()->create();
164164
$model->load($id);
165165
}
166166
$conditionsFieldSetId = $model->getConditionsFieldSetId($formName);

0 commit comments

Comments
 (0)