Skip to content

Commit b55f474

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
class FulltextFilter implements FilterApplierInterface
1717
{
1818
/**
19-
* Patterns using in preg_replace
19+
* Patterns using for escaping special characters in escapeAgainstValue method
2020
*/
21-
private $patterns = [
21+
private $escapePatterns = [
2222
'/[@\.]/' => '\_',
2323
'/([+\-><\(\)~*]+)/' => ' ',
2424
];
@@ -78,7 +78,7 @@ function ($column) use ($alias) {
7878
*/
7979
private function escapeAgainstValue(string $value): string
8080
{
81-
return preg_replace(array_keys($this->patterns), array_values($this->patterns), $value);
81+
return preg_replace(array_keys($this->escapePatterns), array_values($this->escapePatterns), $value);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)