Bug 40865: Redirect if only one patron is found

Regression from
  commit e9b8004d19
  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 <blawlor@clamsnet.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1b57d75e96)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-09-25 12:53:29 +02:00 committed by Paul Derscheid
parent a712b68635
commit bd82d678a0
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 2 deletions

View File

@ -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;