From 7bc90af0be5b77c642056c4dd609c26e5c0d401e Mon Sep 17 00:00:00 2001 From: Andrew Fuerste-Henry Date: Thu, 24 Mar 2022 17:27:11 +0000 Subject: [PATCH] Revert "Bug 30098: Only redirect from patron search if single result is on first page" This reverts commit dd69c34eaf7643783d4604d25aafb893277eb054. Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index 7dcb341834..d51b6fe296 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -448,7 +448,7 @@ 'data': aoData, 'success': function(json){ // redirect if there is only 1 result. - if ( json.aaData.length == 1 && aoData.iDisplayStart == 0 ) { + if ( json.aaData.length == 1 ) { var borrowernumber = json.aaData[0].borrowernumber; document.location.href="/cgi-bin/koha/members/moremember.pl?borrowernumber="+borrowernumber; return false; -- 2.39.5