Bug 12478: Add Koha::ItemType[s] classes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Sep 2015 16:02:28 +0000 (17:02 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 26 Apr 2016 13:00:28 +0000 (10:00 -0300)
These 2 classes come from bug 14828.
Tests in t/db_dependent/Koha/ItemTypes.t should be updated.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Koha/ItemType.pm
Koha/ItemTypes.pm

index 17d6226..bb14cd5 100644 (file)
@@ -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;
index 92fea9c..4265f8e 100644 (file)
@@ -43,6 +43,10 @@ sub _type {
     return 'Itemtype';
 }
 
+sub type {
+    return 'Itemtype';
+}
+
 sub object_class {
     return 'Koha::ItemType';
 }