File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/ImportExport/Model/ResourceModel/Export Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 88namespace Magento \ImportExport \Model \ResourceModel \Export ;
99
1010use Magento \Framework \Data \Collection ;
11+ use Magento \Framework \Phrase ;
1112
1213/**
1314 * Association of attributes for grid
@@ -45,7 +46,7 @@ public function getSize(): int
4546 public function addFieldToFilter ($ field , $ condition )
4647 {
4748 if (isset ($ condition ['like ' ])) {
48- $ value = trim ((string )$ condition ['like ' ], "'% " );
49+ $ value = trim ((string )$ condition ['like ' ], "\ '% " );
4950 $ this ->addFilter ($ field , $ value );
5051 }
5152
@@ -74,6 +75,9 @@ private function filterCollection()
7475 foreach ($ this ->_filters as $ filter ) {
7576 foreach ($ this ->_items as $ item ) {
7677 $ field = $ item ->getData ($ filter ->getData ('field ' )) ?? '' ;
78+ if ($ field instanceof Phrase) {
79+ $ field = (string )$ field ;
80+ }
7781 if (stripos ($ field , $ filter ->getData ('value ' )) === false ) {
7882 $ this ->removeItemByKey ($ item ->getId ());
7983 }
You can’t perform that action at this time.
0 commit comments