diff --git a/misc/cronjobs/debar_patrons_with_fines.pl b/misc/cronjobs/debar_patrons_with_fines.pl index 4f30a47a78..e85f1f77ed 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::AddUniqueDebarment( + Koha::Patron::Debarments::AddDebarment( { borrowernumber => $patron->id, expiration => $expiration, - type => 'SUSPENSION', + type => 'MANUAL', comment => $message, } );