From 827ae353cd516370acd343835eb0b96879f76ffc Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 21 Jan 2026 08:37:26 -0100 Subject: [PATCH] Bug 41512: (OPAC) Additional fix This is needed or else the OPAC still throws the 'malformed query string' mentioned on the original test plan. This is because the fix from bug 40865 was only applied to intra datatables.js not the OPAC datatables. I don't know why this fixes it for the OPAC, but it does. Joubu, thoughts? Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/js/datatables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js index e9246915388..2badc80b3d0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js @@ -601,8 +601,8 @@ function _dt_visibility(table_settings, table_dt) { if (options.ajax && !options.bKohaAjaxSVC) { options.ajax = Object.assign( {}, - options.ajax, - _dt_default_ajax({ default_filters, options }) + _dt_default_ajax({ default_filters, options }), + options.ajax ); options.serverSide = true; options.processing = true; -- 2.43.0