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/documents_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/documents_controller.rb')
-rw-r--r-- | app/controllers/documents_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/documents_controller.rb b/app/controllers/documents_controller.rb index 5659e9ced..b1b7deb64 100644 --- a/app/controllers/documents_controller.rb +++ b/app/controllers/documents_controller.rb @@ -52,7 +52,7 @@ class DocumentsController < ApplicationController a = Attachment.create(:container => @document, :file => file, :author => logged_in_user) @attachments << a unless a.new_record? } if params[:attachments] and params[:attachments].is_a? Array - Mailer.deliver_attachments_add(@attachments) if !@attachments.empty? #and Permission.find_by_controller_and_action(params[:controller], params[:action]).mail_enabled? + Mailer.deliver_attachments_add(@attachments) if !@attachments.empty? && Setting.notified_events.include?('document_added') redirect_to :action => 'show', :id => @document end |