From e3e8849ab2bae76ae7a4a55e5d6129e07e4e14b8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Jul 2022 09:35:37 +0200 Subject: [PATCH] Bug 24857: Remove object_class from singular classes Fixes Can't use string ("Koha::Biblio::ItemGroup") as a HASH ref while "strict refs" in use at /kohadevbox/koha/Koha/Object.pm line 830. Can't use string ("Koha::Biblio::ItemGroup::Item") as a HASH ref while "strict refs" in use at /kohadevbox/koha/Koha/Object.pm line 830. --- Koha/Biblio/ItemGroup.pm | 8 -------- Koha/Biblio/ItemGroup/Item.pm | 8 -------- 2 files changed, 16 deletions(-) diff --git a/Koha/Biblio/ItemGroup.pm b/Koha/Biblio/ItemGroup.pm index 8c4ba66db16..9525a0fe0a7 100644 --- a/Koha/Biblio/ItemGroup.pm +++ b/Koha/Biblio/ItemGroup.pm @@ -131,12 +131,4 @@ sub _type { return 'ItemGroup'; } -=head3 object_class - -=cut - -sub object_class { - return 'Koha::Biblio::ItemGroup'; -} - 1; diff --git a/Koha/Biblio/ItemGroup/Item.pm b/Koha/Biblio/ItemGroup/Item.pm index 17a175f3022..67eca6e6a61 100644 --- a/Koha/Biblio/ItemGroup/Item.pm +++ b/Koha/Biblio/ItemGroup/Item.pm @@ -35,12 +35,4 @@ sub _type { return 'ItemGroupItem'; } -=head3 object_class - -=cut - -sub object_class { - return 'Koha::Biblio::ItemGroup::Item'; -} - 1; -- 2.25.1