diff --git a/C4/Reserves.pm b/C4/Reserves.pm index bc96dc9c3c..091bfc7c66 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -2113,6 +2113,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 } }) @@ -2129,7 +2131,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 } );