projects
/
srvgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1728fa7
)
Bug 5917 : Removing spaces, this may not work
author
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 4 Apr 2011 00:50:21 +0000
(12:50 +1200)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 4 Apr 2011 00:56:34 +0000
(12:56 +1200)
C4/Form/MessagingPreferences.pm
patch
|
blob
|
history
diff --git
a/C4/Form/MessagingPreferences.pm
b/C4/Form/MessagingPreferences.pm
index
808719f
..
474c25e
100644
(file)
--- a/
C4/Form/MessagingPreferences.pm
+++ b/
C4/Form/MessagingPreferences.pm
@@
-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.