summaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 43dbb9964..2451f5ef6 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -46,6 +46,12 @@ class AdminController < ApplicationController
end
def mail_options
+ @notifiables = %w(issue_added issue_updated news_added document_added file_added message_posted)
+ if request.post?
+ Setting.notified_events = (params[:notified_events] || [])
+ flash[:notice] = l(:notice_successful_update)
+ redirect_to :controller => 'admin', :action => 'mail_options'
+ end
end
def test_email