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

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

Return to bug 22456