Bug 28915: Fix field_exists call in C4::MarcModificationTemplates

Control fields (generally, just tags below 010) do not have subfields, use data() at /home/koha/Koha/Koha/SimpleMARC.pm line 460.

To test:
1. prove t/db_dependent/MarcModificationTemplates.t
2. Observe success

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Lari Taskula 2026-04-29 14:49:45 +03:00 committed by Pedro Amorim
parent fed20335a4
commit 3a672758c8
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ sub ModifyRecordWithTemplate {
{
record => $record,
field => $from_field,
subfield => $from_subfield,
subfield => $from_field < 10 ? undef : $from_subfield,
}
);
}