From bba4bc93ebd2b5991723bf10d62c99a23b9629bc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 31 Jul 2022 07:57:03 +0200 Subject: [PATCH] Bug 30650: Add missing koha_object[s]_class methods To fix TestBuilder.t # at t/db_dependent/TestBuilder.t line 453. # got: 'Can't locate Koha/CurbsidePickupPolicys.pm Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/CurbsidePickupPolicy.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Koha/Schema/Result/CurbsidePickupPolicy.pm b/Koha/Schema/Result/CurbsidePickupPolicy.pm index c660539220..f916e0cfd1 100644 --- a/Koha/Schema/Result/CurbsidePickupPolicy.pm +++ b/Koha/Schema/Result/CurbsidePickupPolicy.pm @@ -147,11 +147,17 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-27 11:58:44 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RyZGROB1+g3kb2bo6mwrUQ - __PACKAGE__->add_columns( '+enabled' => { is_boolean => 1 }, '+enable_waiting_holds_only' => { is_boolean => 1 }, '+patron_scheduled_pickup' => { is_boolean => 1 }, ); +sub koha_object_class { + 'Koha::CurbsidePickupPolicy'; +} +sub koha_objects_class { + 'Koha::CurbsidePickupPolicies'; +} + 1; -- 2.39.5