Lines 348-358
if ($barcode) {
Link Here
|
348 |
|
348 |
|
349 |
# is there a waiting hold for the item, for which cancellation |
349 |
# is there a waiting hold for the item, for which cancellation |
350 |
# has been requested? |
350 |
# has been requested? |
351 |
my $waiting_holds_to_be_cancelled = |
351 |
if ($item) { |
352 |
Koha::Holds->waiting->search( { itemnumber => $item->id } ) |
352 |
my $waiting_holds_to_be_cancelled = $item->holds->waiting->filter_by_has_cancellation_requests; |
353 |
->filter_by_has_cancellation_requests; |
353 |
while ( my $hold = $waiting_holds_to_be_cancelled->next ) { |
354 |
while ( my $hold = $waiting_holds_to_be_cancelled->next ) { |
354 |
$hold->cancel; |
355 |
$hold->cancel; |
355 |
} |
356 |
} |
356 |
} |
357 |
|
357 |
|
358 |
# do the return |
358 |
# do the return |
359 |
- |
|
|