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.
Created attachment 131993 [details] [review] 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
Created attachment 132008 [details] [review] 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>
Created attachment 132015 [details] [review] 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>
Pushed to master for 22.05, thanks to everybody involved [U+1F984]
Pushed to 21.11.x for 21.11.05