]> git.koha-community.org Git - koha.git/commit
Bug 20998: Only perform quicksearch if patron found with cardnumber
authorNick Clemens <nick@bywatersolutions.com>
Tue, 26 Jun 2018 15:02:02 +0000 (15:02 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 29 Jun 2018 19:05:57 +0000 (19:05 +0000)
commitfe9f7cef3be1768ec54acd7934b146d5d9d68927
tree55ad9cd87e1fd5b725182bf9837fa625c0a8e95c
parent487e4708b312cd2de645a36cbf0f0bcb31e07d15
Bug 20998: Only perform quicksearch if patron found with cardnumber

This patch makes sure we have a patron before we try to access their
branchcode and allows search to work

To recreate:
1 - Enable 'IndependentBranches'
2 - Setup a patron with all permissions, but not a superlibrarian
3 - Login to staff client as that patron
4 - Click 'Patrons' in the toolbar and try a search
5 - Internal server error
6 - Apply patch
7 - Try the search again
8 - Success!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
members/member.pl