From fe30d20020810d704cd438ffc370dcc8b497ff7d Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Fri, 12 Aug 2016 11:05:46 +0100
Subject: [PATCH] Bug 15407: (follow-up) Koha::Patron::Categories - replace
 C4::Category->al
Content-Type: text/plain; charset=utf-8

Categories.GetName should not have been removed in the previous patch
(merge conflict issue).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
---
 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
-- 
1.7.10.4