Bug 37334: Fix conflict with bug 39473

Bug 39473 added ^ and $ to options of the dropdown lists from the
column filters.

They are removed and replaced with "exact" later in the code (using
build_query).

But in the case of "_status", we do no get this code as it's not a
regular column (it does not have "data" attribute), but an additional
filters.

I don't think this fix is ideal, but we are too close to the release to
rework datatables.js

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-05-20 14:27:15 +02:00 committed by Katrin Fischer
parent c184893a53
commit fb2136bc29
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 1 deletions

View File

@ -714,7 +714,9 @@ function _dt_default_ajax(params) {
} else if (f == "-and") {
if (v) and_query_parameters.push(v);
} else if (v) {
additional_filters[k] = v;
additional_filters[k] = v
.replace(/^\^/, "")
.replace(/\$$/, "");
}
}
if (Object.keys(additional_filters).length) {