From 1d5f0b94945869537b2a425e0ad30b0dbef922bb Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 13 Sep 2022 06:46:46 +0000 Subject: [PATCH] Bug 28553: [QA followup] default to auto renew email when cron switched used This patch defaults to using "email" rather than "sms" notices when AutoRenewalNotices is set to use the --send-notices cron switch Signed-off-by: David Cook --- misc/cronjobs/automatic_renewals.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/automatic_renewals.pl b/misc/cronjobs/automatic_renewals.pl index 923015a1fa..4d9ff5cdd0 100755 --- a/misc/cronjobs/automatic_renewals.pl +++ b/misc/cronjobs/automatic_renewals.pl @@ -235,7 +235,7 @@ if ( $send_notices && $confirm ) { for my $issue ( @{ $report{$borrowernumber} } ) { my $item = $issue->item; # Force sending of email and only email if pref is set to "cron" - my @transports = $send_notices_pref eq 'preferences' ? keys %{ $borrower_preferences->{'transports'} } : 'sms'; + my @transports = $send_notices_pref eq 'preferences' ? keys %{ $borrower_preferences->{'transports'} } : 'email'; foreach my $transport ( @transports ) { my $letter = C4::Letters::GetPreparedLetter ( module => 'circulation', -- 2.30.2