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

(-)a/circ/returns.pl (-2 / +2 lines)
Lines 837-843 $template->param( Link Here
837
837
838
if ( $barcode ) {
838
if ( $barcode ) {
839
    my $item_from_barcode = Koha::Items->find({barcode => $barcode }); # How many times do we fetch this item?!?
839
    my $item_from_barcode = Koha::Items->find({barcode => $barcode }); # How many times do we fetch this item?!?
840
    if ( $item_from_barcode ) {
840
    my $hold_count = $item_from_barcode->current_holds->search()->count;
841
    if ( $item_from_barcode && !$hold_count ) {
841
        $itemnumber = $item_from_barcode->itemnumber;
842
        $itemnumber = $item_from_barcode->itemnumber;
842
        my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber );
843
        my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber );
843
        if ( $holdingBranch and $collectionBranch ) {
844
        if ( $holdingBranch and $collectionBranch ) {
844
- 

Return to bug 36422