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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 238-244 foreach my $item (@items){ Link Here
238
        $item->{patron} = $curr_borrower;
238
        $item->{patron} = $curr_borrower;
239
    }
239
    }
240
240
241
    $item->{waiting_holds} = $item->{object}->holds({ found => 'W', item_level_hold => { '!=' => 0 } })->count;
241
    $item->{waiting_holds} = $item->{object}->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count;
242
}
242
}
243
243
244
my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
244
my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
(-)a/cataloguing/additem.pl (-2 / +1 lines)
Lines 954-960 if ( C4::Context->preference('RevertLostBibLevelHolds') ){ Link Here
954
    # find if any of these lost items have waiting holds
954
    # find if any of these lost items have waiting holds
955
    my @waitinglostitems;
955
    my @waitinglostitems;
956
    foreach my $lostitem ( @lostitems ){
956
    foreach my $lostitem ( @lostitems ){
957
        if ( $lostitem->holds({ found => 'W', item_level_hold => 1 })->count > 0 ){
957
        if ( $lostitem->holds({ found => [ 'W', 'T' ], item_level_hold => 1 })->count > 0 ){
958
            push( @waitinglostitems, $lostitem );
958
            push( @waitinglostitems, $lostitem );
959
        }
959
        }
960
    }
960
    }
961
- 

Return to bug 20844