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

(-)a/misc/cronjobs/longoverdue.pl (-3 / +2 lines)
Lines 360-366 sub longoverdue_sth { Link Here
360
}
360
}
361
361
362
my $dbh               = C4::Context->dbh;
362
my $dbh               = C4::Context->dbh;
363
my $circ_control_pref = C4::Context->preference('CircControl');
363
my $lost_control_pref = C4::Context->preference('LostChargesControl');
364
my $home_holding_pref = C4::Context->preference('HomeOrHoldingBranch');
364
my $home_holding_pref = C4::Context->preference('HomeOrHoldingBranch');
365
365
366
my @available_categories = Koha::Patron::Categories->search()->get_column('categorycode');
366
my @available_categories = Koha::Patron::Categories->search()->get_column('categorycode');
Lines 482-488 foreach my $startrange ( sort keys %$lost ) { Link Here
482
            }
482
            }
483
            if ($filter_branches) {
483
            if ($filter_branches) {
484
                my $lib;
484
                my $lib;
485
                for ($circ_control_pref) {
485
                for ($lost_control_pref) {
486
                    if ( $_ eq 'PatronLibrary' ) {
486
                    if ( $_ eq 'PatronLibrary' ) {
487
                        $patron ||= Koha::Patrons->find( $row->{borrowernumber} );
487
                        $patron ||= Koha::Patrons->find( $row->{borrowernumber} );
488
                        $lib = $patron->branchcode();
488
                        $lib = $patron->branchcode();
489
- 

Return to bug 39802