From a131d1cd3bc90e6bcfcde813336529c84ef53e9c Mon Sep 17 00:00:00 2001 From: d-buchmann Date: Mon, 16 Feb 2026 09:59:50 +0100 Subject: [PATCH] Update PartSearchFilter.php --- src/DataTables/Filters/PartSearchFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DataTables/Filters/PartSearchFilter.php b/src/DataTables/Filters/PartSearchFilter.php index faeaec95..dfc0d924 100644 --- a/src/DataTables/Filters/PartSearchFilter.php +++ b/src/DataTables/Filters/PartSearchFilter.php @@ -145,7 +145,7 @@ class PartSearchFilter implements FilterInterface //Use equal expression to just search for exact numeric matches if ($search_dbId) { $expressions[] = $queryBuilder->expr()->eq('part.id', ':id_exact'); - params[] = new \Doctrine\ORM\Query\Parameter('id_exact', (int) $this->keyword, + $params[] = new \Doctrine\ORM\Query\Parameter('id_exact', (int) $this->keyword, ParameterType::INTEGER); } @@ -156,7 +156,7 @@ class PartSearchFilter implements FilterInterface }, $fields_to_search); //For regex, we pass the query as is, save html special chars - params[] = new \Doctrine\ORM\Query\Parameter('search_query', $this->keyword); + $params[] = new \Doctrine\ORM\Query\Parameter('search_query', $this->keyword); } else { //Escape % and _ characters in the keyword $this->keyword = str_replace(['%', '_'], ['\%', '\_'], $this->keyword);