--- Comment #40 from Marcel de Rooy <[hidden email]> ---
(In reply to Jacek Ablewicz from comment #39)
> For "real" merge usage case (merging two different authority records), if
> the merge gets postponed, when merge() is called later by the cron job,
> authority record with $mergefrom ID is no longer there (it got deleted from
> the database by authorities/merge.pl script ?). This search in postponed
> merge() call
> my $authfrom = Koha::Authorities->find($mergefrom);
> will fail, and $authtypefrom | $auth_tag_to_report_from | @record_from would
> be empty. I.e.: old authority record heading, stored in the merge requests
> table will never be used.
> (but there is a strong possibility I'm very much mistaken about that,
> authorities-related code got changed quite a lot lately).
The code is designed to overcome this situation. There are tests simulating it
Take a look :)