Bug 28553: (QA follow-up) 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 <dcook@prosentient.com.au> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit88f63e01d2) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit681730ee1a) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com> (cherry picked from commitdc92b692e2) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
54f563973d
commit
aa6bb63999
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue