]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 Mar 2022 20:17:33 +0000 (10:17 -1000)
commitd1b2601b01c9c556555fc085948c19ba5f299c9e
tree27a5a916a5eab2e6e36be723c54b937fa75c4eb9
parent8fdfa80609600b58f3022f0dfa5a742e8f41b896
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>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt