summaryrefslogtreecommitdiffstats
path: root/app/views/my/account.rhtml
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-28 18:22:00 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-28 18:22:00 +0000
commit0316af7f6bfa47ba1166eda3c5c7167229033a76 (patch)
treedb8d004f118674335919690a2f38b1b59782941b /app/views/my/account.rhtml
parent3a3263102a7cda4be1c90168a9d32fa904d58272 (diff)
downloadredmine-0316af7f6bfa47ba1166eda3c5c7167229033a76.tar.gz
redmine-0316af7f6bfa47ba1166eda3c5c7167229033a76.zip
Converted User#mail_notification from a boolean to a string.
The string will now store which type of notification option to use. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4216 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my/account.rhtml')
-rw-r--r--app/views/my/account.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/my/account.rhtml b/app/views/my/account.rhtml
index befe6be5a..b173b2b0d 100644
--- a/app/views/my/account.rhtml
+++ b/app/views/my/account.rhtml
@@ -32,7 +32,7 @@
<div class="splitcontentright">
<h3><%=l(:field_mail_notification)%></h3>
<div class="box">
-<%= select_tag 'notification_option', options_for_select(@notification_options, @notification_option),
+<%= select_tag 'notification_option', options_for_select(@notification_options.collect {|o| [l(o.last), o.first]}, @notification_option.to_sym),
:onchange => 'if ($("notification_option").value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
<% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == 'selected' ? '' : 'display:none;') do %>
<p><% User.current.projects.each do |project| %>