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)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Jun 2018 12:58:53 +0000 (12:58 +0000)
commit5530ed6b9d4a45bcca93f3a68371381b87c8eed2
tree425109c0da244714fdda2b219b2c00f1f32c0f10
parent7b16c9a841fc28a9b994d0a1a9ccce77a7e94868
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>
opac/opac-suggestions.pl