small fix for sent date

This commit is contained in:
Harry Bomrah 2016-07-26 02:12:08 +08:00
parent 4a9121c378
commit f0f98f5c09
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class Admin::EmailersController < OrbitAdminController
email.recipients.each do |recipient|
e = Email.new(:module_app_key => "emailer", :mail_to => recipient, :mail_subject => email.mail_subject, :mail_content => email.mail_content, :create_user_id => email.create_user_id)
if !email.email_sentdate.nil? && email.email_sentdate > Time.now
e.email_sentdate = email.email_sentdate
e.mail_sentdate = email.email_sentdate
end
if !email.email_entry_files.blank?
email.email_entry_files.each do |file|