From 79b411532ba69164a1cee5993c0f48522fca74e3 Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Fri, 22 Aug 2025 00:50:13 +0200 Subject: [PATCH] Bug 38924: Remove duplicate sub It also made the tests fail --- Koha/Schema/Result/PatronQuota.pm | 9 +++------ Koha/Schema/Result/PatronQuotaUsage.pm | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Koha/Schema/Result/PatronQuota.pm b/Koha/Schema/Result/PatronQuota.pm index 8c2512d118..b12e8e180b 100644 --- a/Koha/Schema/Result/PatronQuota.pm +++ b/Koha/Schema/Result/PatronQuota.pm @@ -145,6 +145,9 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-01-30 16:04:36 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KG/MIjPSLcpeSlPypwli2Q + +# You can replace this text with custom code or comments, and it will be preserved on regeneration + =head3 koha_object_class Returns the package name for patron quota objects @@ -155,12 +158,6 @@ sub koha_object_class { return 'Koha::Patron::Quota'; } -# You can replace this text with custom code or comments, and it will be preserved on regeneration - -sub koha_object_class { - return 'Koha::Patron::Quota'; -} - sub koha_objects_class { return 'Koha::Patron::Quotas'; } diff --git a/Koha/Schema/Result/PatronQuotaUsage.pm b/Koha/Schema/Result/PatronQuotaUsage.pm index 0895e7128e..7d48110a8e 100644 --- a/Koha/Schema/Result/PatronQuotaUsage.pm +++ b/Koha/Schema/Result/PatronQuotaUsage.pm @@ -145,6 +145,9 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-21 16:54:49 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x+OvLQNInT0DkfPmiZwZzg + +# You can replace this text with custom code or comments, and it will be preserved on regeneration + =head2 checkout Type: belongs_to @@ -177,12 +180,6 @@ sub koha_object_class { return 'Koha::Patron::Quota::Usage'; } -# You can replace this text with custom code or comments, and it will be preserved on regeneration - -sub koha_object_class { - return 'Koha::Patron::Quota::Usage'; -} - sub koha_objects_class { return 'Koha::Patron::Quota::Usages'; } -- 2.50.1