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>
This commit is contained in:
Jonathan Druart 2025-02-11 10:07:40 +01:00 committed by Katrin Fischer
parent c67130078b
commit 4fcff9db9e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 5 additions and 2 deletions

View File

@ -576,10 +576,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 (