Skip to content

Commit 3a4ec6c

Browse files
author
Roman Ganin
committed
Merge remote-tracking branch 'origin/MAGETWO-37819' into Troll_S40_bugfix
2 parents e1b0bb8 + 60f8877 commit 3a4ec6c

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

app/code/Magento/Sales/Model/Resource/Report/Order/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ protected function _getSelectedColumns()
102102
}
103103

104104
/**
105-
* Add selected data
105+
* Apply custom columns before load
106106
*
107107
* @return $this
108108
*/
109-
protected function _initSelect()
109+
protected function _beforeLoad()
110110
{
111111
$this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns());
112112
if (!$this->isTotals()) {
113113
$this->getSelect()->group($this->_periodFormat);
114114
}
115-
return parent::_initSelect();
115+
return parent::_beforeLoad();
116116
}
117117
}

app/code/Magento/Sales/Model/Resource/Report/Refunded/Collection/Order.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ protected function _getSelectedColumns()
8383
}
8484

8585
/**
86-
* Add selected data
86+
* Apply custom columns before load
8787
*
88-
* @return \Magento\Sales\Model\Resource\Report\Refunded\Collection\Order
88+
* @return $this
8989
*/
90-
protected function _initSelect()
90+
protected function _beforeLoad()
9191
{
9292
$this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns());
9393
if (!$this->isTotals()) {
9494
$this->getSelect()->group($this->_periodFormat);
9595
}
96-
return parent::_initSelect();
96+
return parent::_beforeLoad();
9797
}
9898
}

app/code/Magento/Sales/Model/Resource/Report/Shipping/Collection/Order.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ protected function _getSelectedColumns()
8787
}
8888

8989
/**
90-
* Add selected data
90+
* Apply custom columns before load
9191
*
9292
* @return $this
9393
*/
94-
protected function _initSelect()
94+
protected function _beforeLoad()
9595
{
9696
$this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns());
9797

@@ -101,6 +101,6 @@ protected function _initSelect()
101101
if ($this->isSubTotals()) {
102102
$this->getSelect()->group([$this->_periodFormat]);
103103
}
104-
return parent::_initSelect();
104+
return parent::_beforeLoad();
105105
}
106106
}

app/code/Magento/Tax/Model/Resource/Report/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ protected function _getSelectedColumns()
8585
}
8686

8787
/**
88-
* Add selected data
88+
* Apply custom columns before load
8989
*
9090
* @return $this
9191
*/
92-
protected function _initSelect()
92+
protected function _beforeLoad()
9393
{
9494
$this->getSelect()->from($this->getResource()->getMainTable(), $this->_getSelectedColumns());
9595
if (!$this->isTotals() && !$this->isSubTotals()) {
@@ -99,6 +99,6 @@ protected function _initSelect()
9999
if ($this->isSubTotals()) {
100100
$this->getSelect()->group([$this->_periodFormat]);
101101
}
102-
return parent::_initSelect();
102+
return parent::_beforeLoad();
103103
}
104104
}

0 commit comments

Comments
 (0)