From fc5975bfa314336cef27bd1add5662e0b8f2da2f Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 8 Nov 2023 11:32:10 -0100 Subject: [PATCH] Bug 35287: Preparation: AdditionalFields License Mixin Koha::Object::Mixin::AdditionalFields needs to come before Koha::Object in the inheritance so that the strings_map method that is called is the one from Mixin and not from Koha::Object. This is only required for Koha classes implementing the AdditionalFields Mixin and expose data through the REST API, because strings_map is implement in both the aforementioned classes Signed-off-by: Edith Speller Signed-off-by: Michaela Sieber Signed-off-by: Paul Derscheid --- Koha/ERM/License.pm | 2 +- Koha/ERM/Licenses.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/ERM/License.pm b/Koha/ERM/License.pm index 412dd9da3a..d690fe24ab 100644 --- a/Koha/ERM/License.pm +++ b/Koha/ERM/License.pm @@ -19,7 +19,7 @@ use Modern::Perl; use Koha::Database; -use base qw(Koha::Object); +use base qw(Koha::Object::Mixin::AdditionalFields Koha::Object); use Koha::Acquisition::Bookseller; use Koha::ERM::UserRoles; diff --git a/Koha/ERM/Licenses.pm b/Koha/ERM/Licenses.pm index c45af4d785..b1619ee63c 100644 --- a/Koha/ERM/Licenses.pm +++ b/Koha/ERM/Licenses.pm @@ -22,7 +22,7 @@ use Koha::Database; use Koha::ERM::License; -use base qw(Koha::Objects); +use base qw(Koha::Objects Koha::Objects::Mixin::AdditionalFields); =head1 NAME -- 2.47.0