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

(-)a/misc/cronjobs/cleanup_database.pl (-5 / +3 lines)
Lines 530-543 if ($pStatistics) { Link Here
530
    }
530
    }
531
}
531
}
532
532
533
$return_claims = C4::Context->preference('CleanUpDatabaseReturnClaims') if $return_claims;
533
if( $return_claims && ( my $days = C4::Context->preference('CleanUpDatabaseReturnClaims') )) {
534
if ($return_claims) {
534
    print "Purging return claims older than $days days.\n" if $verbose;
535
    print "Purging return claims older than $return_claims days.\n" if $verbose;
536
535
537
    $return_claims = Koha::Checkouts::ReturnClaims->filter_by_last_update(
536
    $return_claims = Koha::Checkouts::ReturnClaims->filter_by_last_update(
538
        {
537
        {
539
            timestamp_column_name => 'resolved_on',
538
            timestamp_column_name => 'resolved_on',
540
            days => $return_claims
539
            days => $days,
541
        }
540
        }
542
    );
541
    );
543
542
544
- 

Return to bug 25429