Skip to content

Commit b6ef22c

Browse files
committed
ACP2E-56 : [On Prem] Magento invoice order date filter not working
1 parent 69c6990 commit b6ef22c

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

app/code/Magento/Sales/Model/ResourceModel/Order/CollectionFilter.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,6 @@ public function __construct(
4444
$this->timeZone = $timeZone;
4545
}
4646

47-
/**
48-
* @inheritdoc
49-
*/
50-
public function _initSelect()
51-
{
52-
parent::_initSelect();
53-
54-
$tableDescription = $this->getConnection()->describeTable($this->getMainTable());
55-
56-
if ($tableDescription) {
57-
foreach ($tableDescription as $columnInfo) {
58-
$this->addFilterToMap($columnInfo['COLUMN_NAME'], 'main_table.' . $columnInfo['COLUMN_NAME']);
59-
}
60-
}
61-
62-
return $this;
63-
}
64-
6547
/**
6648
* @inheritDoc
6749
*/

app/code/Magento/Sales/Model/ResourceModel/Order/Invoice/Grid/CollectionFilter.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ public function __construct(
4848
$this->timeZone = $timeZone ?: ObjectManager::getInstance()->get(TimezoneInterface::class);
4949
}
5050

51-
/**
52-
* @inheritdoc
53-
*/
54-
public function _initSelect()
55-
{
56-
parent::_initSelect();
57-
58-
$tableDescription = $this->getConnection()->describeTable($this->getMainTable());
59-
foreach ($tableDescription as $columnInfo) {
60-
$this->addFilterToMap($columnInfo['COLUMN_NAME'], 'main_table.'.$columnInfo['COLUMN_NAME']);
61-
}
62-
63-
return $this;
64-
}
65-
6651
/**
6752
* @inheritDoc
6853
*/

0 commit comments

Comments
 (0)