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:
parent
645d769a94
commit
202d0e1fcc
|
|
@ -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,
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue