[Koha-patches] [PATCH] [SIGNED-OFF] Bug #6044 - Authority is deleted when mergeto and mergefrom are the same

Stéphane Delaune stephane.delaune at biblibre.com
Tue Apr 5 14:11:00 CEST 2011


From: Alex Arnaud <alex.arnaud at biblibre.com>


Signed-off-by: Stéphane Delaune <stephane.delaune at biblibre.com>
---
 misc/migration_tools/merge_authority.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/migration_tools/merge_authority.pl b/misc/migration_tools/merge_authority.pl
index 0987827..b99591f 100755
--- a/misc/migration_tools/merge_authority.pl
+++ b/misc/migration_tools/merge_authority.pl
@@ -97,7 +97,7 @@ if ($batch) {
   my $MARCto = GetAuthority($mergeto);
   &merge($mergefrom,$MARCfrom,$mergeto,$MARCto);
   #Could add mergefrom authority to mergeto rejected forms before deletion 
-  DelAuthority($mergefrom);
+  DelAuthority($mergefrom) if ($mergefrom != $mergeto);
 }
 my $timeneeded = gettimeofday - $starttime;
 print "Done in $timeneeded seconds" unless $noconfirm;
-- 
1.7.0.4



More information about the Koha-patches mailing list