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

(-)a/circ/returns.pl (-1 / +2 lines)
Lines 419-424 if ( $messages->{'ResFound'}) { Link Here
419
    my $branchCheck = ( $userenv_branch eq $reserve->{branchcode} );
419
    my $branchCheck = ( $userenv_branch eq $reserve->{branchcode} );
420
    if ( $reserve->{'ResFound'} eq "Reserved" && C4::Context->preference('HoldsAutoFill') ) {
420
    if ( $reserve->{'ResFound'} eq "Reserved" && C4::Context->preference('HoldsAutoFill') ) {
421
        my $item = Koha::Items->find( $itemnumber );
421
        my $item = Koha::Items->find( $itemnumber );
422
        # For some cases of holds we don't have the itemnumebr so should find the item by barcode
423
        $item = Koha::Items->find({ barcode => $barcode }) unless $item;
422
        my $biblio = $item->biblio;
424
        my $biblio = $item->biblio;
423
425
424
        my $diffBranchSend = !$branchCheck ? $reserve->{branchcode} : undef;
426
        my $diffBranchSend = !$branchCheck ? $reserve->{branchcode} : undef;
425
- 

Return to bug 25969