From c8dc47140904b009741d9122b6280efceeefe6f5 Mon Sep 17 00:00:00 2001 From: Wainui Witika-Park Date: Wed, 15 Mar 2023 13:24:53 +1300 Subject: [PATCH] Revert "Bug 20457: Overdue and pre-overdue cronjobs not skipping phone notices" This reverts commit 23e86e130d7853562fbc6a92f25f60767e6e82d4. --- misc/cronjobs/advance_notices.pl | 3 --- misc/cronjobs/overdue_notices.pl | 1 - 2 files changed, 4 deletions(-) diff --git a/misc/cronjobs/advance_notices.pl b/misc/cronjobs/advance_notices.pl index dbe0ea8ceb..a018cd948f 100755 --- a/misc/cronjobs/advance_notices.pl +++ b/misc/cronjobs/advance_notices.pl @@ -308,7 +308,6 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { ## Get branch info for borrowers home library. foreach my $transport ( keys %{$borrower_preferences->{'transports'}} ) { - next if $transport eq 'itiva'; my $letter = parse_letter( { letter_code => $letter_type, borrowernumber => $upcoming->{'borrowernumber'}, branchcode => $branchcode, @@ -356,7 +355,6 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { ## Get branch info for borrowers home library. foreach my $transport ( keys %{$borrower_preferences->{'transports'}} ) { - next if $transport eq 'itiva'; my $letter = parse_letter( { letter_code => $letter_type, borrowernumber => $upcoming->{'borrowernumber'}, branchcode => $branchcode, @@ -604,7 +602,6 @@ sub send_digests { } foreach my $transport ( keys %{ $borrower_preferences->{'transports'} } ) { - next if $transport eq 'itiva'; my $letter = parse_letter( { letter_code => $params->{letter_code}, diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index d25a9611c6..307365cfcb 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -707,7 +707,6 @@ END_SQL my $print_sent = 0; # A print notice is not yet sent for this patron for my $mtt ( @message_transport_types ) { - next if $mtt eq 'itiva'; my $effective_mtt = $mtt; if ( ($mtt eq 'email' and not scalar @emails_to_use) or ($mtt eq 'sms' and not $data->{smsalertnumber}) ) { # email or sms is requested but not exist, do a print. -- 2.39.5