Bug 5917 : Removing spaces, this may not work
authorChris Cormack <chrisc@catalyst.net.nz>
Mon, 4 Apr 2011 00:50:21 +0000 (12:50 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 4 Apr 2011 00:56:34 +0000 (12:56 +1200)
C4/Form/MessagingPreferences.pm

index 808719f..474c25e 100644 (file)
@@ -121,6 +121,7 @@ sub set_form_values {
     # walk through the options and update them with these borrower_preferences
     my $messaging_options = C4::Members::Messaging::GetMessagingOptions();
     PREF: foreach my $option ( @$messaging_options ) {
+        $option=~ s/ /_/g;
         my $pref = C4::Members::Messaging::GetMessagingPreferences( { %{ $target_params }, message_name => $option->{'message_name'} } );
         $option->{ $option->{'message_name'} } = 1;
         # make a hashref of the days, selecting one.