From ac0c8cf18115f75bc9864dddecbdaa5854762278 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 Signed-off-by: Lucas Gass [EDIT] Run perltidy to resolve one line. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- 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 66d2d21eb3..d810226a02 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.39.5