diff --git a/Koha/SimpleMARC.pm b/Koha/SimpleMARC.pm index 6fd08b1013..5aab1285d7 100644 --- a/Koha/SimpleMARC.pm +++ b/Koha/SimpleMARC.pm @@ -92,9 +92,9 @@ sub copy_field { if ( ! ( $record && $fromFieldName && $toFieldName ) ) { return; } - if ( not $fromSubfieldName + if ( not defined $fromSubfieldName or $fromSubfieldName eq '' - or not $toSubfieldName + or not defined $toSubfieldName or $toSubfieldName eq '' ) { _copy_move_field( { record => $record,