diff --git a/members/memberentry.pl b/members/memberentry.pl index 0f369ebc21..75ca069f7b 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -68,7 +68,7 @@ if ( $borrowernumber and not $patron ) { } if ( C4::Context->preference('SMSSendDriver') eq 'Email' ) { - my @providers = Koha::SMS::Providers->search->as_list; + my @providers = Koha::SMS::Providers->search( {}, { order_by => 'name' } )->as_list; $template->param( sms_providers => \@providers ); } diff --git a/opac/opac-messaging.pl b/opac/opac-messaging.pl index 01faeb3cf4..a221b39a83 100755 --- a/opac/opac-messaging.pl +++ b/opac/opac-messaging.pl @@ -79,8 +79,10 @@ $template->param( TalkingTechItivaPhone => C4::Context->preference("TalkingTechItivaPhoneNotification") ); if ( C4::Context->preference("SMSSendDriver") eq 'Email' ) { - my $providers = Koha::SMS::Providers->search; - $template->param( sms_providers => $providers, sms_provider_id => $patron->sms_provider_id ); + my @providers = Koha::SMS::Providers->search( {}, { order_by => 'name' } )->as_list; + $template->param( + sms_providers => \@providers, + sms_provider_id => $patron->sms_provider_id ); } my $new_session_id = $query->cookie('CGISESSID');