Mercurial > hg > soundsoftware-site
diff app/controllers/files_controller.rb @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 40f7cfd4df19 |
children | 0c9da2b87ad6 cbce1fd3b1b7 |
line wrap: on
line diff
--- a/app/controllers/files_controller.rb Fri Sep 24 14:06:04 2010 +0100 +++ b/app/controllers/files_controller.rb Fri Nov 19 13:24:41 2010 +0000 @@ -28,7 +28,7 @@ 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 project_files_path(@project)