Bug 38531: add diff when reverting hold
To test:
1 - place, capture, and revert a hold
2 - view action logs for your hold via SQL so you can see the diff column
3 - confirm reversion of waiting hold generates a MODIFY line in logs with no diff
4 - apply patch, restart_all
5 - capture and revert your hold again
6 - confirm logs include diff showing change to found and priority
Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit d86c662451)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
This commit is contained in:
parent
95f4b5c77a
commit
cef370444d
|
|
@ -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 } );
|
||||
|
|
|
|||
Loading…
Reference in New Issue