|
Lines 1273-1278
sub first_valid_email_address {
Link Here
|
| 1273 |
return $self->email() || $self->emailpro() || $self->B_email() || q{}; |
1273 |
return $self->email() || $self->emailpro() || $self->B_email() || q{}; |
| 1274 |
} |
1274 |
} |
| 1275 |
|
1275 |
|
|
|
1276 |
=head3 message_transport_type_for |
| 1277 |
|
| 1278 |
Given a message transport type, will return the transport type that should be used, |
| 1279 |
including a fallback if needed. |
| 1280 |
|
| 1281 |
my $mtt = $patron->message_transport_type_for('email'); |
| 1282 |
|
| 1283 |
=cut |
| 1284 |
|
| 1285 |
sub message_transport_type_for { |
| 1286 |
my ( $self, $mtt ) = @_; |
| 1287 |
|
| 1288 |
if ( $mtt eq 'email' ) { |
| 1289 |
return 'sms' |
| 1290 |
if C4::Context->preference("FallbackToSMSIfNoEmail") |
| 1291 |
&& $self->smsalertnumber |
| 1292 |
&& !$self->notice_email_address; |
| 1293 |
} |
| 1294 |
|
| 1295 |
return $mtt; |
| 1296 |
} |
| 1297 |
|
| 1276 |
=head3 get_club_enrollments |
1298 |
=head3 get_club_enrollments |
| 1277 |
|
1299 |
|
| 1278 |
=cut |
1300 |
=cut |