From 492beda7604a517d3c5f1dc99028a75bf112a7dd Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Mon, 4 Apr 2011 15:24:44 +0200 Subject: [PATCH] Bug #6044 - Authority is deleted when mergeto and mergefrom are the same --- 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.6.3.3