Bug 25765: Add GetLoggedInBranchname method
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jun 2020 11:59:29 +0000 (13:59 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 30 Jul 2020 17:28:22 +0000 (17:28 +0000)
commit323ebe649d2baebac60e59269cc390fa5d83a9a5
tree3b4c1a7bb53c38c07a6b72420f1913dbf2800ff6
parent3583225507c13490278d35616ddead1037da62cf
Bug 25765: Add GetLoggedInBranchname method

Add GetLoggedInBranchname method to Branches templates plugin.

Also changes GetName method to use Koha::Library instead of direct SQL.

Test plan :
Run prove t/db_dependent/Template/Plugin/Branches.t

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0fcd0fd2707188368fa5b370b808e875c6ea5814)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Template/Plugin/Branches.pm
t/db_dependent/Template/Plugin/Branches.t