Bugzilla – Attachment 130239 Details for
Bug 29136
Patron search on request.pl has performance and display issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29136: Don't redirect if the whole set is > 1
Bug-29136-Dont-redirect-if-the-whole-set-is--1.patch (text/plain), 1.30 KB, created by
Jonathan Druart
on 2022-02-07 16:28:25 UTC
(
hide
)
Description:
Bug 29136: Don't redirect if the whole set is > 1
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-02-07 16:28:25 UTC
Size:
1.30 KB
patch
obsolete
>From 10ef8ec3622114c57c2da5a0f26872b4f8aebb9a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 7 Feb 2022 17:27:37 +0100 >Subject: [PATCH] Bug 29136: Don't redirect if the whole set is > 1 > >To prevent a redirect when we click on a page with only 1 result >--- > koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index c452d0bf8ac..974e2f3d18e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -1596,7 +1596,7 @@ > 'data': aoData, > 'success': function(json){ > // redirect if there is only 1 result. >- if ( json.aaData.length == 1 ) { >+ if ( json.iTotalDisplayRecords == 1 ) { > var borrowernumber = json.aaData[0].borrowernumber; > document.location.href = '/cgi-bin/koha/reserve/request.pl?borrowernumber=' + borrowernumber + "[% url_biblio_params %]" > return false; >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29136
:
130039
|
130239
|
130245
|
130246
|
130874
|
130875
|
130876
|
131355
|
131356
|
131357