Feature #3616 ยป mail_configurator.patch
| app/controllers/my_controller.rb (kopia robocza) | ||
|---|---|---|
| 58 | 58 | @user.mail_notification = (params[:notification_option] == 'all') | 
| 59 | 59 | @user.pref.attributes = params[:pref] | 
| 60 | 60 | @user.pref[:no_self_notified] = (params[:no_self_notified] == '1') | 
| 61 | 	call_hook(:my_controller_new_user_preferences, { :params => params, :user_pref => @user.pref }) | |
| 61 | 62 | if @user.save | 
| 62 | 63 | @user.pref.save | 
| 63 | 64 | @user.notified_project_ids = (params[:notification_option] == 'selected' ? params[:notified_project_ids] : []) | 
| app/views/my/account.rhtml (kopia robocza) | ||
|---|---|---|
| 40 | 40 | <p><em><%= l(:text_user_mail_option) %></em></p> | 
| 41 | 41 | <% end %> | 
| 42 | 42 | <p><label><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %> <%= l(:label_user_mail_no_self_notified) %></label></p> | 
| 43 | ||
| 44 | 	<%= call_hook(:mail_configurator_options, { :user_pref => @user.pref }) %>	 | |
| 45 | ||
| 43 | 46 | </div> | 
| 44 | 47 | |
| 45 | 48 | <h3><%=l(:label_preferences)%></h3> |