From 2acec62291ab10756d943b955706fa37a7bfbe5b Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 19 May 2025 10:17:10 +0000 Subject: [PATCH] Bug 39934: Use _get_core_fields as fields to be migrated Instead of ignoring from an arbitrary list --- Koha/ILL/Backend/Standard.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index 2102cb73765..96385420fb9 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -706,7 +706,8 @@ sub migrate { $new_request->updated( dt_from_string() ); $new_request->store; - my @default_attributes = (qw/title type author year volume isbn issn article_title article_author pages/); + my %core_fields = %{ _get_core_fields() }; + my @default_attributes = keys %core_fields; my $original_attributes = $original_request->extended_attributes->search( { type => { '-in' => \@default_attributes } } ); -- 2.39.5