@@ -, +, @@ hold 1 - Enable HoldsLog in system preferences 2 - Set system preferences: DefaultHoldExpirationDate: Set DefaultHoldExpirationdatePeriod: 5 DefaultHoldExpirationdateUnitOfTime: days 3 - Create a hold for a patron 4 - Note the expiration date is set 5 - Check the action logs - SELECT * FROM action_logs 6 - Note that there is a lot of data, this is from DateTime object in expirationdate 7 - Apply patch 8 - Restart all 9 - Place another hold --- C4/Reserves.pm | 1 + 1 file changed, 1 insertion(+) --- a/C4/Reserves.pm +++ a/C4/Reserves.pm @@ -261,6 +261,7 @@ sub AddReserve { )->store(); $hold->set_waiting() if $found && $found eq 'W'; + $hold->discard_changes(); logaction( 'HOLDS', 'CREATE', $hold->id, Dumper($hold->unblessed) ) if C4::Context->preference('HoldsLog'); --