Lines 96-110
sub handle_form_action {
Link Here
|
96 |
} |
96 |
} |
97 |
|
97 |
|
98 |
C4::Members::Messaging::SetMessagingPreference( $updater ); |
98 |
C4::Members::Messaging::SetMessagingPreference( $updater ); |
99 |
|
|
|
100 |
if ($query->param( $option->{'message_attribute_id'})){ |
101 |
$prefs_set = 1; |
102 |
} |
103 |
} |
104 |
if (! $prefs_set && $insert){ |
105 |
# this is new borrower, and we have no preferences set, use the defaults |
106 |
$target_params->{categorycode} = $categorycode; |
107 |
C4::Members::Messaging::SetMessagingPreferencesFromDefaults( $target_params ); |
108 |
} |
99 |
} |
109 |
# show the success message |
100 |
# show the success message |
110 |
$template->param( settings_updated => 1 ); |
101 |
$template->param( settings_updated => 1 ); |
111 |
- |
|
|