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 8
8
namespace Magento \ImportExport \Model \ResourceModel \Export ;
9
9
10
10
use Magento \Framework \Data \Collection ;
11
+ use Magento \Framework \Phrase ;
11
12
12
13
/**
13
14
* Association of attributes for grid
@@ -45,7 +46,7 @@ public function getSize(): int
45
46
public function addFieldToFilter ($ field , $ condition )
46
47
{
47
48
if (isset ($ condition ['like ' ])) {
48
- $ value = trim ((string )$ condition ['like ' ], "'% " );
49
+ $ value = trim ((string )$ condition ['like ' ], "\ '% " );
49
50
$ this ->addFilter ($ field , $ value );
50
51
}
51
52
@@ -74,6 +75,9 @@ private function filterCollection()
74
75
foreach ($ this ->_filters as $ filter ) {
75
76
foreach ($ this ->_items as $ item ) {
76
77
$ field = $ item ->getData ($ filter ->getData ('field ' )) ?? '' ;
78
+ if ($ field instanceof Phrase) {
79
+ $ field = (string )$ field ;
80
+ }
77
81
if (stripos ($ field , $ filter ->getData ('value ' )) === false ) {
78
82
$ this ->removeItemByKey ($ item ->getId ());
79
83
}
You can’t perform that action at this time.
0 commit comments