Skip to content

Commit 1ef6fe1

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dev/tests/integration/testsuite/Magento/Cms/Model/ResourceModel/Block/Grid/CollectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function testAddFieldToFilter($field): void
5151

5252
$collection = $gridCollection->addFieldToFilter($field, ['qteq' => $filterDate]);
5353
$expectedSelect = "SELECT `main_table`.* FROM `cms_block` AS `main_table` " .
54-
"WHERE (((`{$field}` = '{$convertedDate}')))";
54+
"WHERE ((((`{$field}` = '{$convertedDate}')))) " .
55+
"AND (main_table.created_in <= 1) AND (main_table.updated_in > 1)";
5556

5657
$this->assertEquals($expectedSelect, $collection->getSelectSql(true));
5758
}

dev/tests/integration/testsuite/Magento/Cms/Model/ResourceModel/Page/Grid/CollectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function testAddFieldToFilter($field): void
5151

5252
$collection = $gridCollection->addFieldToFilter($field, ['qteq' => $filterDate]);
5353
$expectedSelect = "SELECT `main_table`.* FROM `cms_page` AS `main_table` " .
54-
"WHERE (((`{$field}` = '{$convertedDate}')))";
54+
"WHERE ((((`{$field}` = '{$convertedDate}')))) " .
55+
"AND (main_table.created_in <= 1) AND (main_table.updated_in > 1)";
5556

5657
$this->assertEquals($expectedSelect, $collection->getSelectSql(true));
5758
}

0 commit comments

Comments
 (0)