Bug 30098: Only redirect from patron search if single result is on first page
authorNick Clemens <nick@bywatersolutions.com>
Mon, 14 Feb 2022 18:38:16 +0000 (18:38 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 20 Mar 2022 15:51:33 +0000 (15:51 +0000)
commitdd69c34eaf7643783d4604d25aafb893277eb054
tree12ef39e3ef19a0184c6c0e5c6396d7e774cbd060
parent2ea0ccf5d46ae72b935d166fe43d54df82a2f3a9
Bug 30098: Only redirect from patron search if single result is on first page

This patch simply adds a check that we are oin the first page (starting at result 0)
before redirecting to a isngle patron

To test:
1 - Perform a patron search that returns 41 results, on Koha testing docker, 'a' works
2 - Go to second page of results, works
3 - Go to third page of results, redirected to the patron
4 - Apply patch
5 - Repeat search and paging
6 - On third page you remian in results and are not redirected to patron

Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit e77ca95756919ab1630a35b1c69e0fdc41289f27)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt