diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-14 15:30:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-14 15:30:46 +0000 |
commit | 23264ec3eb8e17543922a0093ed402a9d7ba5de9 (patch) | |
tree | 94817aaa5e78fe305732196d5c4ed79602a2ea78 /app/controllers/admin_controller.rb | |
parent | 1fa1f620183d2268e906deadb1c5f87a0335d518 (diff) | |
download | redmine-23264ec3eb8e17543922a0093ed402a9d7ba5de9.tar.gz redmine-23264ec3eb8e17543922a0093ed402a9d7ba5de9.zip |
Mail notification options restored (default is: issue_added and issue_updated).
Added mail notification when adding a news (disabled by default).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@728 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 6 |
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 |