Fix: Try to add empty attachment
This commit is contained in:
parent
a2bad3c81d
commit
613c79ab31
|
@ -139,8 +139,10 @@ class WebmailController < ApplicationController
|
|||
render :action => :mailsent
|
||||
elsif operation == t(:add)
|
||||
@mail = create_mail
|
||||
if params['attachment']
|
||||
attachment = CDF::Attachment.new(@mail)
|
||||
attachment.file = params['attachment']
|
||||
end
|
||||
else
|
||||
# default - new email create
|
||||
@mail = create_mail
|
||||
|
|
Loading…
Reference in a new issue