Bug 30325: (Bug 30098 follow-up) Fix broken patron search redirect when one result
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 21 Mar 2022 22:18:57 +0000 (12:18 -1000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Mar 2022 13:39:28 +0000 (09:39 -0400)
commit7997f4a0bfb6174d7538ea13c6603e7281eb4dd3
tree29da3dd3da0a83fa284f256cff8d37c36b3eed41
parent11cd810bef0c6cf2bbb456a5c04e053003b4de87
Bug 30325: (Bug 30098 follow-up) Fix broken patron search redirect when one result

Bug 30098 fixed patron search behavior when a later page has only 1 result, but broke the redirect when there is only a single result from search.

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 - On third page you remain in results and are not redirected
4 - Perform a patron search that return only 1 result, name or cardnumber
5 - You get redirected to this patron page

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt