Skip to content

Commit 69c6990

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

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

app/code/Magento/Cms/Model/ResourceModel/Block/Grid/Collection.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,6 @@ public function __construct(
8585
$this->timeZone = $timeZone ?: ObjectManager::getInstance()->get(TimezoneInterface::class);
8686
}
8787

88-
/**
89-
* @inheritdoc
90-
*/
91-
protected function _initSelect()
92-
{
93-
parent::_initSelect();
94-
95-
$tableDescription = $this->getConnection()->describeTable($this->getMainTable());
96-
97-
if ($tableDescription) {
98-
foreach ($tableDescription as $columnInfo) {
99-
if ($columnInfo['COLUMN_NAME'] === 'creation_time' || $columnInfo['COLUMN_NAME'] === 'update_time') {
100-
$this->addFilterToMap($columnInfo['COLUMN_NAME'], 'main_table.'.$columnInfo['COLUMN_NAME']);
101-
}
102-
}
103-
}
104-
105-
return $this;
106-
}
107-
10888
/**
10989
* @inheritDoc
11090
*/

app/code/Magento/Cms/Model/ResourceModel/Page/Grid/Collection.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,6 @@ public function __construct(
8585
$this->timeZone = $timeZone ?: ObjectManager::getInstance()->get(TimezoneInterface::class);
8686
}
8787

88-
/**
89-
* @inheritdoc
90-
*/
91-
protected function _initSelect()
92-
{
93-
parent::_initSelect();
94-
95-
$tableDescription = $this->getConnection()->describeTable($this->getMainTable());
96-
97-
if ($tableDescription) {
98-
foreach ($tableDescription as $columnInfo) {
99-
if ($columnInfo['COLUMN_NAME'] === 'creation_time' || $columnInfo['COLUMN_NAME'] === 'update_time') {
100-
$this->addFilterToMap($columnInfo['COLUMN_NAME'], 'main_table.'.$columnInfo['COLUMN_NAME']);
101-
}
102-
}
103-
}
104-
105-
return $this;
106-
}
107-
10888
/**
10989
* @inheritDoc
11090
*/

0 commit comments

Comments
 (0)