Bug #6044 - Authority is deleted when mergeto and mergefrom are the same

Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Alex Arnaud 2011-04-05 14:11:00 +02:00 committed by Chris Cormack
parent 66de13af9a
commit e43da19e34

View file

@ -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;