From fd87ee6edf40eaf22e93ca1e74f1cc17ce82dc88 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 Signed-off-by: Lucas Gass --- 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 e924691538..2badc80b3d 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;