Lines 2067-2072
sub RevertWaitingStatus {
Link Here
|
2067 |
} |
2067 |
} |
2068 |
)->next; |
2068 |
)->next; |
2069 |
|
2069 |
|
|
|
2070 |
my $original = C4::Context->preference('HoldsLog') ? $hold->unblessed : undef; |
2071 |
|
2070 |
## Increment the priority of all other non-waiting |
2072 |
## Increment the priority of all other non-waiting |
2071 |
## reserves for this bib record |
2073 |
## reserves for this bib record |
2072 |
my $holds = Koha::Holds->search({ biblionumber => $hold->biblionumber, priority => { '>' => 0 } }) |
2074 |
my $holds = Koha::Holds->search({ biblionumber => $hold->biblionumber, priority => { '>' => 0 } }) |
Lines 2083-2089
sub RevertWaitingStatus {
Link Here
|
2083 |
} |
2085 |
} |
2084 |
)->store( { hold_reverted => 1 } ); |
2086 |
)->store( { hold_reverted => 1 } ); |
2085 |
|
2087 |
|
2086 |
logaction( 'HOLDS', 'MODIFY', $hold->id, $hold ) |
2088 |
logaction( 'HOLDS', 'MODIFY', $hold->id, $hold, undef, $original ) |
2087 |
if C4::Context->preference('HoldsLog'); |
2089 |
if C4::Context->preference('HoldsLog'); |
2088 |
|
2090 |
|
2089 |
_FixPriority( { biblionumber => $hold->biblionumber } ); |
2091 |
_FixPriority( { biblionumber => $hold->biblionumber } ); |
2090 |
- |
|
|