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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 243-249 foreach my $item (@items){ Link Here
243
        $item->{patron} = $curr_borrower;
243
        $item->{patron} = $curr_borrower;
244
    }
244
    }
245
245
246
    $item->{waiting_holds} = $item->{object}->holds({ found => 'W', item_level_hold => { '!=' => 0 } })->count;
246
    $item->{waiting_holds} = $item->{object}->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count;
247
}
247
}
248
248
249
my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
249
my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
(-)a/cataloguing/additem.pl (-2 / +1 lines)
Lines 1001-1007 if ( C4::Context->preference('RevertLostBibLevelHolds') ){ Link Here
1001
    # find if any of these lost items have waiting holds
1001
    # find if any of these lost items have waiting holds
1002
    my @waitinglostitems;
1002
    my @waitinglostitems;
1003
    foreach my $lostitem ( @lostitems ){
1003
    foreach my $lostitem ( @lostitems ){
1004
        if ( $lostitem->holds({ found => 'W', item_level_hold => 1 })->count > 0 ){
1004
        if ( $lostitem->holds({ found => [ 'W', 'T' ], item_level_hold => 1 })->count > 0 ){
1005
            push( @waitinglostitems, $lostitem );
1005
            push( @waitinglostitems, $lostitem );
1006
        }
1006
        }
1007
    }
1007
    }
1008
- 

Return to bug 20844