Bugzilla – Attachment 182582 Details for
Bug 39934
Standard backend shows attributes from previously "migrated from" backends
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39934: Use _get_core_fields as fields to be migrated
Bug-39934-Use-getcorefields-as-fields-to-be-migrat.patch (text/plain), 1.03 KB, created by
Pedro Amorim
on 2025-05-19 10:44:42 UTC
(
hide
)
Description:
Bug 39934: Use _get_core_fields as fields to be migrated
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-05-19 10:44:42 UTC
Size:
1.03 KB
patch
obsolete
>From 2acec62291ab10756d943b955706fa37a7bfbe5b Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39934
:
182581
| 182582 |
182583