##// END OF EJS Templates
Fixes mail handler for when there's no attachments (#8651)....
Jean-Philippe Lang -
r6205:1317b99c3d0b
parent child
Show More
@@ -198,7 +198,7 class MailHandler < ActionMailer::Base
198 end
198 end
199
199
200 def add_attachments(obj)
200 def add_attachments(obj)
201 if email.attachments.any?
201 if email.attachments && email.attachments.any?
202 email.attachments.each do |attachment|
202 email.attachments.each do |attachment|
203 obj.attachments << Attachment.create(:container => obj,
203 obj.attachments << Attachment.create(:container => obj,
204 :file => attachment,
204 :file => attachment,
General Comments 0
You need to be logged in to leave comments. Login now