From e6447a1795cd988e0a3d2ae7c5b7b7231608061c 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). --- 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 5eb4c95..2a7ae53 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.8.1