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:
parent
fed20335a4
commit
3a672758c8
|
|
@ -640,7 +640,7 @@ sub ModifyRecordWithTemplate {
|
|||
{
|
||||
record => $record,
|
||||
field => $from_field,
|
||||
subfield => $from_subfield,
|
||||
subfield => $from_field < 10 ? undef : $from_subfield,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue