From 27cc2d6a33619e34cf316a95c1633b3ded31fa75 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 5 Feb 2020 16:05:19 +0100 Subject: [PATCH] Bug 24526: Set verbose if confirm not set Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- misc/cronjobs/automatic_renewals.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/cronjobs/automatic_renewals.pl b/misc/cronjobs/automatic_renewals.pl index b612eef0c7..599576994e 100755 --- a/misc/cronjobs/automatic_renewals.pl +++ b/misc/cronjobs/automatic_renewals.pl @@ -83,6 +83,7 @@ cronlogaction(); my $auto_renews = Koha::Checkouts->search({ auto_renew => 1 }); my %report; +$verbose = 1 unless $verbose or $confirm; print "Test run only\n" unless $confirm; while ( my $auto_renew = $auto_renews->next ) { -- 2.39.2