]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 7 Jun 2018 07:16:27 +0000 (09:16 +0200)
commitd65b20c673eda825d7cb24425abdf43007cfd570
treeb4fe6668423eb26b9ad447c6519914f7bdb8d0df
parent7a6d958bf3cec338adf239a7e69dd6168ab1cdfb
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>
(cherry picked from commit 7e025fde1ae976cb12d4593b33579e12f5b284ec)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-suggestions.pl