From 78ffca5f32d82b72edb07a6d058a623c41b712dd 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 (cherry picked from commit b3dee0daf29c4593aee2781307853845a6cd3735) Signed-off-by: Martin Renvoize --- 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 bafbe91b7f..d18908fb23 100644 --- a/Koha/Schema/Result/Aqorder.pm +++ b/Koha/Schema/Result/Aqorder.pm @@ -628,6 +628,11 @@ __PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber"); # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K0GnMGYtZUQ1WCesHKIxHw +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.20.1