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 <nengard@bywatersolutions.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
b9808b86df
commit
5d5c4a67ec
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue