Defect #6452 ยป files_controller_patch.patch
| app/controllers/files_controller.rb | ||
|---|---|---|
| 28 | 28 |
attachments = Attachment.attach_files(container, params[:attachments]) |
| 29 | 29 |
render_attachment_warning_if_needed(container) |
| 30 | 30 | |
| 31 |
if !attachments.empty? && Setting.notified_events.include?('file_added')
|
|
| 31 |
if !attachments.empty? && !attachments[:files].blank? && Setting.notified_events.include?('file_added')
|
|
| 32 | 32 |
Mailer.deliver_attachments_added(attachments[:files]) |
| 33 | 33 |
end |
| 34 | 34 |
redirect_to project_files_path(@project) |