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

(-)a/C4/Items.pm (-1 / +1 lines)
Lines 878-884 sub GetItemsForInventory { Link Here
878
878
879
    if ( $ignore_waiting_holds ) {
879
    if ( $ignore_waiting_holds ) {
880
        $query .= "LEFT JOIN reserves ON items.itemnumber = reserves.itemnumber ";
880
        $query .= "LEFT JOIN reserves ON items.itemnumber = reserves.itemnumber ";
881
        push( @where_strings, q{reserves.found != 'W' OR reserves.found IS NULL} );
881
        push( @where_strings, q{(reserves.found != 'W' OR reserves.found IS NULL)} );
882
    }
882
    }
883
883
884
    if ( @where_strings ) {
884
    if ( @where_strings ) {
(-)a/t/db_dependent/Items/GetItemsForInventory.t (-1 / +2 lines)
Lines 87-92 subtest 'Skip items with waiting holds' => sub { Link Here
87
                homebranch       => $library->id,
87
                homebranch       => $library->id,
88
                holdingbranch    => $library->id,
88
                holdingbranch    => $library->id,
89
                itype            => $itemtype->itemtype,
89
                itype            => $itemtype->itemtype,
90
                reserves         => undef
90
            }
91
            }
91
        }
92
        }
92
    );
93
    );
Lines 99-104 subtest 'Skip items with waiting holds' => sub { Link Here
99
                homebranch       => $library->id,
100
                homebranch       => $library->id,
100
                holdingbranch    => $library->id,
101
                holdingbranch    => $library->id,
101
                itype            => $itemtype->itemtype,
102
                itype            => $itemtype->itemtype,
103
                reserves         => undef
102
            }
104
            }
103
        }
105
        }
104
    );
106
    );
105
- 

Return to bug 21413