Bugzilla – Attachment 131356 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.41 KB, created by
Jonathan Druart
on 2022-03-03 19:33:22 UTC
(
hide
)
Description:
Bug 29136: Don't redirect if the whole set is > 1
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-03-03 19:33:22 UTC
Size:
1.41 KB
patch
obsolete
>From 4eeb5cc50e00329f78d367d5396be8d9015af9df 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 > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 51b81e39905..9f94f7be89b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -1598,7 +1598,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