From c0bdcfbf93ef1924b91ad4cec04eb2f0232acece Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 25 Sep 2025 12:53:29 +0200 Subject: [PATCH] Bug 40865: Redirect if only one patron is found Regression from commit e9b8004d197876dea8c38374c08ec00451e37020 Bug 38255: Replace dataTable constructor with kohaTable - Staff We should keep the params passed and not override them Test plan: 1 - Search for 'edna acosta' in check out search on koha home page 2 - See the one result 3 - You are expected to be redirected to the patron's page Signed-off-by: Brendan Lawlor --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 0e8a12b23f..24ed39d5da 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -1373,8 +1373,8 @@ function update_search_description( 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.39.5