From d2606a1c83a004e5e9b1ea86c8ee96111a0e2da3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 27 Aug 2021 17:06:09 +0200 Subject: [PATCH] Bug 22690: Add koha_object[s]_class to fix TestBuilder.t 'Can't locate object method "_new_from_dbic" via package "Koha::Linktracker" (perhaps you forgot to load "Koha::Linktracker"?) at /kohadevbox/koha/Koha/Object.pm line 334. Signed-off-by: Jonathan Druart --- Koha/Schema/Result/Linktracker.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Koha/Schema/Result/Linktracker.pm b/Koha/Schema/Result/Linktracker.pm index 0bdad4eade..6cc99ce859 100644 --- a/Koha/Schema/Result/Linktracker.pm +++ b/Koha/Schema/Result/Linktracker.pm @@ -169,6 +169,11 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-27 08:42:21 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ksT3i//fQn+HnBKt4YZlhg +sub koha_object_class { + 'Koha::TrackedLink'; +} +sub koha_objects_class { + 'Koha::TrackedLinks'; +} -# You can replace this text with custom content, and it will be preserved on regeneration 1; -- 2.39.5