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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 236-242 foreach my $item (@items){ Link Here
236
        }
236
        }
237
    }
237
    }
238
238
239
    $item_info->{waiting_holds} = $item->{object}->holds({ found => 'W', item_level_hold => { '!=' => 0 } })->count;
239
    $item_info->{waiting_holds} = $item->{object}->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count;
240
240
241
    push @item_data, $item_info;
241
    push @item_data, $item_info;
242
}
242
}
(-)a/cataloguing/additem.pl (-2 / +1 lines)
Lines 657-663 if ( C4::Context->preference('RevertLostBibLevelHolds') ){ Link Here
657
    # find if any of these lost items have waiting holds
657
    # find if any of these lost items have waiting holds
658
    my @waitinglostitems;
658
    my @waitinglostitems;
659
    foreach my $lostitem ( @lostitems ){
659
    foreach my $lostitem ( @lostitems ){
660
        if ( $lostitem->holds({ found => 'W', item_level_hold => 1 })->count > 0 ){
660
        if ( $lostitem->holds({ found => [ 'W', 'T' ], item_level_hold => 1 })->count > 0 ){
661
            push( @waitinglostitems, $lostitem );
661
            push( @waitinglostitems, $lostitem );
662
        }
662
        }
663
    }
663
    }
664
- 

Return to bug 20844