diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 046bfd0235..a4cfc7cb50 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -2067,6 +2067,8 @@ sub RevertWaitingStatus { } )->next; + my $original = C4::Context->preference('HoldsLog') ? $hold->unblessed : undef; + ## Increment the priority of all other non-waiting ## reserves for this bib record my $holds = Koha::Holds->search({ biblionumber => $hold->biblionumber, priority => { '>' => 0 } }) @@ -2083,7 +2085,7 @@ sub RevertWaitingStatus { } )->store( { hold_reverted => 1 } ); - logaction( 'HOLDS', 'MODIFY', $hold->id, $hold ) + logaction( 'HOLDS', 'MODIFY', $hold->id, $hold, undef, $original ) if C4::Context->preference('HoldsLog'); _FixPriority( { biblionumber => $hold->biblionumber } );