From 1fadc85ef96ade6043696cd9b9270d691a429da7 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Sat, 28 Feb 2026 17:06:26 +0000 Subject: [PATCH] Bug 35104: Add koha_object_class to BiblioMetadataError schema result Map the new BiblioMetadataError DBIx::Class result to its Koha object classes so that Koha::Biblio::Metadata->metadata_errors returns a proper Koha::Biblio::Metadata::Errors resultset. Sponsored-by: OpenFifth --- Koha/Schema/Result/BiblioMetadataError.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Koha/Schema/Result/BiblioMetadataError.pm b/Koha/Schema/Result/BiblioMetadataError.pm index 63e2ebe1b2e..44a9f377138 100644 --- a/Koha/Schema/Result/BiblioMetadataError.pm +++ b/Koha/Schema/Result/BiblioMetadataError.pm @@ -112,4 +112,21 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-27 12:56:18 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9EDJRN99cOP8lmceBh8GpQ + +=head2 koha_object_class + +=cut + +sub koha_object_class { + 'Koha::Biblio::Metadata::Error'; +} + +=head2 koha_objects_class + +=cut + +sub koha_objects_class { + 'Koha::Biblio::Metadata::Errors'; +} + 1; -- 2.53.0