##// END OF EJS Templates
Merged r4177 from trunk....
Eric Davis -
r4084:22bcce63aad6
parent child
Show More
@@ -26,7 +26,7 class FilesController < ApplicationController
26 26 attachments = Attachment.attach_files(container, params[:attachments])
27 27 render_attachment_warning_if_needed(container)
28 28
29 if !attachments.empty? && Setting.notified_events.include?('file_added')
29 if !attachments.empty? && !attachments[:files].blank? && Setting.notified_events.include?('file_added')
30 30 Mailer.deliver_attachments_added(attachments[:files])
31 31 end
32 32 redirect_to :controller => 'files', :action => 'index', :id => @project
General Comments 0
You need to be logged in to leave comments. Login now