From 7c0cbc3fe8a9f900045f4bb1ec31c79afded2d1d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 15 Sep 2015 17:02:28 +0100 Subject: [PATCH] Bug 12478: Add Koha::ItemType[s] classes These 2 classes come from bug 14828. Tests in t/db_dependent/Koha/ItemTypes.t should be updated. Signed-off-by: Nick Clemens Signed-off-by: Jesse Weaver Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Brendan Gallagher --- Koha/ItemType.pm | 8 ++++---- Koha/ItemTypes.pm | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Koha/ItemType.pm b/Koha/ItemType.pm index 17d62268fe..bb14cd599a 100644 --- a/Koha/ItemType.pm +++ b/Koha/ItemType.pm @@ -1,9 +1,5 @@ package Koha::ItemType; -# This represents a single itemtype - -# Copyright 2014 Catalyst IT -# # This file is part of Koha. # # Koha is free software; you can redistribute it and/or modify it under the @@ -93,4 +89,8 @@ sub _type { return 'Itemtype'; } +sub type { + return 'Itemtype'; +} + 1; diff --git a/Koha/ItemTypes.pm b/Koha/ItemTypes.pm index 92fea9c331..4265f8e630 100644 --- a/Koha/ItemTypes.pm +++ b/Koha/ItemTypes.pm @@ -43,6 +43,10 @@ sub _type { return 'Itemtype'; } +sub type { + return 'Itemtype'; +} + sub object_class { return 'Koha::ItemType'; } -- 2.39.5