Bug 20763: Remove unecessary Koha::Patron fetch
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 28 May 2018 19:36:54 +0000 (16:36 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Jun 2018 11:01:49 +0000 (12:01 +0100)
commit7e025fde1ae976cb12d4593b33579e12f5b284ec
tree9283af14c5abfd50d7b8dc183eae7974235fc721
parente3cc49a61b13ff863262da6a397eb49a3045b14a
Bug 20763: Remove unecessary Koha::Patron fetch

If $borrowernumber is not set, there is no userenv.
So let's pick the library code set in the userenv instead of fetching
the Koha::Patron->branchcode from DB

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
opac/opac-suggestions.pl