From 2321571d9f5e45a9f815ecea6d863c13661c1ace 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 Content-Type: text/plain; charset=utf-8 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 Signed-off-by: Marcel de Rooy --- 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 b20813f4d9..2947ef9284 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -1371,8 +1371,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