From: Owen Leonard Date: Thu, 15 Sep 2011 13:42:38 +0000 (-0400) Subject: Fix for Bug 6872 - Can't set default SMS messaging options for patron category X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=5d5c4a67ec5c91770583edb38ce0213dfa6119c7;p=koha.git Fix for Bug 6872 - Can't set default SMS messaging options for patron category Passing SMS driver preference value to the template so that SMS options can be displayed when appropriate. Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- diff --git a/admin/categorie.pl b/admin/categorie.pl index 576d7caa94..521346b15d 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -113,6 +113,7 @@ if ($op eq 'add_form') { category_type => $data->{'category_type'}, DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), "type_".$data->{'category_type'} => 1, + SMSSendDriver => C4::Context->preference("SMSSendDriver") ); if (C4::Context->preference('EnhancedMessagingPreferences')) { C4::Form::MessagingPreferences::set_form_values({ categorycode => $categorycode } , $template);