From b3dee0daf29c4593aee2781307853845a6cd3735 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 1 Oct 2018 11:38:04 -0300 Subject: [PATCH] Bug 21385: Define the Koha object class for orders It fixes the following issue: t/db_dependent/Acquisition/GetBasketsInfosByBookseller.t .. 1/40 Can't locate object method "_new_from_dbic" via package "Koha::Aqorder" (perhaps you forgot to load "Koha::Aqorder"?) at /home/vagrant/kohaclone/Koha/Object.pm line 230. Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- Koha/Schema/Result/Aqorder.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Koha/Schema/Result/Aqorder.pm b/Koha/Schema/Result/Aqorder.pm index f0dca06948..803511822d 100644 --- a/Koha/Schema/Result/Aqorder.pm +++ b/Koha/Schema/Result/Aqorder.pm @@ -664,6 +664,11 @@ __PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-31 11:51:37 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GQEXetlivZm7buQohl8m4A +sub koha_objects_class { + 'Koha::Acquisition::Orders'; +} +sub koha_object_class { + 'Koha::Acquisition::Order'; +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; -- 2.39.5