Skip to content

Commit b02f015

Browse files
committed
Revert "fix: "Email notification" value in /my/account when empty string users.mail_notification"
This reverts commit 6317b1d.
1 parent b82fcec commit b02f015

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

app/models/user.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ class User < Principal
157157
end
158158
end)
159159

160-
def normalized_mail_notification
161-
mail_notification.presence || 'none'
162-
end
163-
164160
def set_mail_notification
165161
self.mail_notification = Setting.default_notification_option if self.mail_notification.blank?
166162
true

app/views/users/_mail_notifications.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<%= select_tag(
44
'user[mail_notification]',
55
options_for_select(
6-
user_mail_notification_options(@user), @user.normalized_mail_notification),
6+
user_mail_notification_options(@user), @user.mail_notification),
77
:onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}'
88
) %>
99
</p>

0 commit comments

Comments
 (0)