Skip to content

Commit 0cf5ae0

Browse files
MC-17947: Search by email is working incorrect in Sales > Orders grid
1 parent 5588999 commit 0cf5ae0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/FulltextFilter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ function ($column) use ($alias) {
7070
*/
7171
private function escapeAgainstValue(string $value): string
7272
{
73-
return preg_replace('/([+\-><\(\)~*@]+)/', ' ', $value);
73+
$value = preg_replace('/([+\-><\(\)~*]+)/', ' ', $value);
74+
return preg_replace('/(@)/', '\_', $value);
7475
}
7576

7677
/**

0 commit comments

Comments
 (0)