Update default Email send date

This commit is contained in:
manson 2014-06-24 17:23:51 +08:00
parent 837c14739d
commit 843dcef9f8
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ class Admin::AnnouncementsController < OrbitAdminController
@categories = @module_app.categories.enabled
@statuses = []
@bulletin = Bulletin.new
@bulletin.email_sentdate = Time.now
end
def create
@ -42,6 +43,7 @@ class Admin::AnnouncementsController < OrbitAdminController
@tags =@module_app.tags
@categories = @module_app.categories.enabled
@statuses = []
@bulletin.email_sentdate = Time.now if @bulletin.email_sent == false
end
def update

View File

@ -22,7 +22,7 @@ class Bulletin
field :email_id
field :email_sent, :type => Boolean, :default => false
field :email_sentdate , :type => DateTime, :default => Time.now+1.day
field :email_sentdate , :type => DateTime
field :email_member_ids
field :other_mailaddress