View | Details | Raw Unified | Return to bug 22456
Collapse All | Expand All

(-)a/circ/returns.pl (-1 / +10 lines)
Lines 338-343 if ($barcode) { Link Here
338
    $template->param( 'multiple_confirmed' => 1 )
338
    $template->param( 'multiple_confirmed' => 1 )
339
      if $query->param('multiple_confirm');
339
      if $query->param('multiple_confirm');
340
340
341
    # is there a waiting hold for the item, for which cancellation
342
    # has been requested?
343
    my $waiting_holds_to_be_cancelled =
344
      Koha::Holds->waiting->search( { itemnumber => $item->id } )
345
      ->filter_by_has_cancellation_requests;
346
347
    while ( my $hold = $waiting_holds_to_be_cancelled->next ) {
348
        $hold->cancel;
349
    }
350
341
    # do the return
351
    # do the return
342
    ( $returned, $messages, $issue, $borrower ) =
352
    ( $returned, $messages, $issue, $borrower ) =
343
      AddReturn( $barcode, $userenv_branch, $exemptfine, $return_date )
353
      AddReturn( $barcode, $userenv_branch, $exemptfine, $return_date )
344
- 

Return to bug 22456