]> git.koha-community.org Git - koha.git/commit
Bug 25765: Add GetLoggedInBranchname method
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jun 2020 11:59:29 +0000 (13:59 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 23 Jul 2020 09:17:27 +0000 (11:17 +0200)
commit0fcd0fd2707188368fa5b370b808e875c6ea5814
tree162b54b9d9e28dbaa2fd05f04b49ff52848eef7d
parent12e83a64ececa12e691d855e2454a30a9b5e0e04
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>
Koha/Template/Plugin/Branches.pm
t/db_dependent/Template/Plugin/Branches.t