From 82c98ad23495f18af7cba32a3d02d1dd34cdda01 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 12 Aug 2016 11:05:46 +0100 Subject: [PATCH] Bug 15407: (follow-up) Koha::Patron::Categories - replace C4::Category->al Categories.GetName should not have been removed in the previous patch (merge conflict issue). Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- Koha/Template/Plugin/Categories.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Koha/Template/Plugin/Categories.pm b/Koha/Template/Plugin/Categories.pm index 5eb4c95d1e..2a7ae53c52 100644 --- a/Koha/Template/Plugin/Categories.pm +++ b/Koha/Template/Plugin/Categories.pm @@ -26,6 +26,12 @@ sub all { return Koha::Patron::Categories->search_limited; } +sub GetName { + my ( $self, $categorycode ) = @_; + + return Koha::Patron::Categories->find( $categorycode )->description; +} + 1; =head1 NAME -- 2.39.2