Lines 531-537
sub ModSuggestion {
Link Here
|
531 |
|
531 |
|
532 |
# fetch the entire updated suggestion so that we can populate the letter |
532 |
# fetch the entire updated suggestion so that we can populate the letter |
533 |
my $full_suggestion = GetSuggestion( $suggestion->{suggestionid} ); |
533 |
my $full_suggestion = GetSuggestion( $suggestion->{suggestionid} ); |
|
|
534 |
|
534 |
my $patron = Koha::Patrons->find( $full_suggestion->{suggestedby} ); |
535 |
my $patron = Koha::Patrons->find( $full_suggestion->{suggestedby} ); |
|
|
536 |
return unless $patron; |
535 |
|
537 |
|
536 |
my $transport = (C4::Context->preference("FallbackToSMSIfNoEmail")) && ($patron->smsalertnumber) && (!$patron->email) ? 'sms' : 'email'; |
538 |
my $transport = (C4::Context->preference("FallbackToSMSIfNoEmail")) && ($patron->smsalertnumber) && (!$patron->email) ? 'sms' : 'email'; |
537 |
|
539 |
|
538 |
- |
|
|