From e5b3507bcc9116023129391de1156f138356ac6b Mon Sep 17 00:00:00 2001 From: d-buchmann Date: Mon, 16 Feb 2026 09:28:48 +0100 Subject: [PATCH] Update PartSearchFilter.php --- src/DataTables/Filters/PartSearchFilter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DataTables/Filters/PartSearchFilter.php b/src/DataTables/Filters/PartSearchFilter.php index 7667a762..faeaec95 100644 --- a/src/DataTables/Filters/PartSearchFilter.php +++ b/src/DataTables/Filters/PartSearchFilter.php @@ -148,7 +148,8 @@ class PartSearchFilter implements FilterInterface params[] = new \Doctrine\ORM\Query\Parameter('id_exact', (int) $this->keyword, ParameterType::INTEGER); } - + + if ($this->regex) { //Convert the fields to search to a list of expressions $expressions = array_map(function (string $field): string { return sprintf("REGEXP(%s, :search_query) = TRUE", $field);