Revert "Bug 39532: Script debar_patrons_with_fines.pl creates repeat restrictions, uses wrong restriction type"

This reverts commit 94286343c7.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2025-05-13 16:50:30 +00:00
parent 645d769a94
commit 202d0e1fcc
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 2 deletions

View File

@ -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,
}
);