Quick correction, so that event or orga submitter is automatically filled with contact email if blank
This commit is contained in:
parent
3387a38bda
commit
41758e0330
@ -61,7 +61,7 @@ class Event < ActiveRecord::Base
|
||||
self.decision_time = Time.zone.now
|
||||
|
||||
# Populate submitter using contact info if absent
|
||||
self.submitter ||= contact
|
||||
self.submitter = contact if submitter.blank?
|
||||
end
|
||||
|
||||
before_validation on: :update do
|
||||
|
@ -21,7 +21,7 @@ class Orga < ActiveRecord::Base
|
||||
self.submission_time ||= Time.zone.now
|
||||
|
||||
# Populate submitter using contact info if absent
|
||||
self.submitter ||= contact
|
||||
self.submitter = contact if submitter.blank?
|
||||
end
|
||||
|
||||
after_create do
|
||||
|
Loading…
Reference in New Issue
Block a user