Bug 30838: Don't fallback through phone numbers for sms

This patch removes the fallback handling for smsalartnumber as the
to_address in notices. We ignore the to_address field in the message
queue at send time for sms anyway and use smsalertnumber exclusively so
having this field populated is just confusing to the end user

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-05-24 12:32:45 +01:00 committed by Tomas Cohen Arazi
parent a85d08c765
commit 5e388ed509
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 0 additions and 3 deletions

View File

@ -185,9 +185,6 @@ sub _to_address {
|| $borrower->{B_email};
} elsif ($transport eq 'sms') {
$address = $borrower->{smsalertnumber}
|| $borrower->{phone}
|| $borrower->{phonepro}
|| $borrower->{B_phone};
} else {
warn "'$transport' is an unknown message transport.";
}