From 0b8db3c06c0db660baed85d6a9b545bf0fd1a45d Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Wed, 2 Feb 2022 15:32:00 +0200 Subject: [PATCH] Bug 15157: Add my $amount and fix options Variable my $amount was missing. Also option amount has to be declared as integer and option confirm is no longer string. Sponsored by: Koha-Suomi Oy --- misc/cronjobs/debar_patrons_with_fines.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/cronjobs/debar_patrons_with_fines.pl b/misc/cronjobs/debar_patrons_with_fines.pl index a22599c84c..21cc608088 100755 --- a/misc/cronjobs/debar_patrons_with_fines.pl +++ b/misc/cronjobs/debar_patrons_with_fines.pl @@ -77,11 +77,11 @@ use Koha::Patron::Debarments; use C4::Log qw( cronlogaction ); -my ( $help, $confirm, $message, $expiration, $file ); +my ( $amount, $help, $confirm, $message, $expiration, $file ); GetOptions( - 'a|amount' => \$amount, + 'a|amount:i' => \$amount, 'h|help' => \$help, - 'c|confirm:s' => \$confirm, + 'c|confirm' => \$confirm, 'm|message:s' => \$message, 'f|file:s' => \$file, 'e|expiration:s' => \$expiration, -- 2.25.1