Update default Email send date
This commit is contained in:
parent
837c14739d
commit
843dcef9f8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue