Lines 675-680
END_SQL
Link Here
|
675 |
# email or sms is requested but not exist, do a print. |
675 |
# email or sms is requested but not exist, do a print. |
676 |
$effective_mtt = 'print'; |
676 |
$effective_mtt = 'print'; |
677 |
} |
677 |
} |
|
|
678 |
|
679 |
my $letter_exists = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"}, $branchcode, $effective_mtt ) ? 1 : 0; |
678 |
my $letter = parse_overdues_letter( |
680 |
my $letter = parse_overdues_letter( |
679 |
{ letter_code => $overdue_rules->{"letter$i"}, |
681 |
{ letter_code => $overdue_rules->{"letter$i"}, |
680 |
borrowernumber => $borrowernumber, |
682 |
borrowernumber => $borrowernumber, |
Lines 685-691
END_SQL
Link Here
|
685 |
'items.content' => $titles, |
687 |
'items.content' => $titles, |
686 |
'count' => $itemcount, |
688 |
'count' => $itemcount, |
687 |
}, |
689 |
}, |
688 |
message_transport_type => $effective_mtt, |
690 |
# If there is no template defined for the requested letter |
|
|
691 |
# Fallback on email |
692 |
message_transport_type => $letter_exists ? $effective_mtt : 'email', |
689 |
} |
693 |
} |
690 |
); |
694 |
); |
691 |
unless ($letter) { |
695 |
unless ($letter) { |
692 |
- |
|
|