diff --git a/misc/cronjobs/debar_patrons_with_fines.pl b/misc/cronjobs/debar_patrons_with_fines.pl index e85f1f77ed..4f30a47a78 100755 --- a/misc/cronjobs/debar_patrons_with_fines.pl +++ b/misc/cronjobs/debar_patrons_with_fines.pl @@ -106,11 +106,11 @@ while ( my $patron = $patrons->next ) { # Don't crash, but keep debarring as long as you can! eval { - Koha::Patron::Debarments::AddDebarment( + Koha::Patron::Debarments::AddUniqueDebarment( { borrowernumber => $patron->id, expiration => $expiration, - type => 'MANUAL', + type => 'SUSPENSION', comment => $message, } );