|
Lines 798-808
sub fill {
Link Here
|
| 798 |
if C4::Context->preference('HoldsLog'); |
798 |
if C4::Context->preference('HoldsLog'); |
| 799 |
|
799 |
|
| 800 |
# if this hold was part of a group, cancel other holds in the group |
800 |
# if this hold was part of a group, cancel other holds in the group |
| 801 |
my @holds = Koha::Holds->search({ hold_group_id => $hold->hold_group_id }); |
801 |
if ( $hold->hold_group_id ) { |
| 802 |
foreach my $h ( @holds ) { |
802 |
my @holds = Koha::Holds->search({ hold_group_id => $hold->hold_group_id }); |
| 803 |
$h->cancel unless $h->reserve_id == $hold->reserve_id; |
803 |
foreach my $h ( @holds ) { |
| 804 |
|
804 |
$h->cancel unless $h->reserve_id == $hold->reserve_id; |
|
|
805 |
} |
| 805 |
} |
806 |
} |
|
|
807 |
|
| 806 |
Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue( |
808 |
Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue( |
| 807 |
{ |
809 |
{ |
| 808 |
biblio_ids => [ $old_me->biblionumber ] |
810 |
biblio_ids => [ $old_me->biblionumber ] |