git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4198
e93f8b46-1217-0410-a6f0-
8f06a7374b81
attachments = Attachment.attach_files(container, params[:attachments])
render_attachment_warning_if_needed(container)
- if !attachments.empty? && Setting.notified_events.include?('file_added')
+ if !attachments.empty? && !attachments[:files].blank? && Setting.notified_events.include?('file_added')
Mailer.deliver_attachments_added(attachments[:files])
end
redirect_to :controller => 'files', :action => 'index', :id => @project