]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 4 Jul 2018 06:46:46 +0000 (08:46 +0200)
commita9035a52d082924a8380639dcf423437b064a4f0
tree6ee3a70e97d48d17f857e03aab18ed3e2484c4b7
parent16add1adb392389c87b30446cc13183d43aae167
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 3afc24c776a30fc510c23177548b8b26fd44c4c7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
members/member.pl