Bug 39011: Apply the pre-process to column filters

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4fcff9db9e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2025-02-11 10:07:40 +01:00 committed by Fridolin Somers
parent d0c58725b8
commit 72ea5fd9db
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 5 additions and 2 deletions

View File

@ -496,10 +496,13 @@ function _dt_default_ajax (params){
coded_datatype &&
coded_datatype.length > 1
) {
if (global_search.length) {
if (global_search.length || value.length) {
coded_datatype = coded_datatype[1];
const search_value = value.length
? value
: global_search;
const regex = new RegExp(
`^${global_search}`,
`^${search_value}`,
"i"
);
if (