Bug 32070: Consistent classes for primary buttons: Acquisitions
[koha-ffzg.git] / opac / opac-messaging.pl
index d8ab5ec..a221b39 100755 (executable)
@@ -79,11 +79,13 @@ $template->param(
                   TalkingTechItivaPhone        =>  C4::Context->preference("TalkingTechItivaPhoneNotification") );
 
 if ( C4::Context->preference("SMSSendDriver") eq 'Email' ) {
-    my @providers = Koha::SMS::Providers->search->as_list;
-    $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 = $cookie->value;
+my $new_session_id = $query->cookie('CGISESSID');
 $template->param(
     csrf_token => Koha::Token->new->generate_csrf({
             session_id => $new_session_id,