From 202d0e1fcc4510db65194dce250cf4c8877e5826 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 13 May 2025 16:50:30 +0000 Subject: [PATCH] Revert "Bug 39532: Script debar_patrons_with_fines.pl creates repeat restrictions, uses wrong restriction type" This reverts commit 94286343c714c1671f37ce3a2f65bf6beaac23d8. Signed-off-by: Katrin Fischer --- misc/cronjobs/debar_patrons_with_fines.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, } );