From 551db80f7b499bc5e696a8638261aebf31d3a066 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Fri, 7 Dec 2018 14:43:18 -0300
Subject: [PATCH] Bug 21831: Allow move all fields even if destination field is
 different

Tests exist in t/SimpleMARC.t to prove that it works and it is possible.
I do not remember what I wrote this limitation.

Signed-off-by: Jon Knight <j.p.knight@lboro.ac.uk>
---
 C4/MarcModificationTemplates.pm | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/C4/MarcModificationTemplates.pm b/C4/MarcModificationTemplates.pm
index da8f0a4..54846e5 100644
--- a/C4/MarcModificationTemplates.pm
+++ b/C4/MarcModificationTemplates.pm
@@ -608,9 +608,6 @@ sub ModifyRecordWithTemplate {
                 if ( $field_number == 1 ) {
                     # We want to process the first field
                     $field_numbers = [ 1 ];
-                } elsif ( $to_field and $from_field ne $to_field ) {
-                    # If the from and to fields are not the same, we only process the first field.
-                    $field_numbers = [ 1 ];
                 }
             }
 
-- 
2.1.4