Fix bug w/ proposal submissions
This commit is contained in:
parent
9b1704fad6
commit
a8e2cd4ef9
1 changed files with 8 additions and 1 deletions
|
|
@ -62,7 +62,14 @@ class Event < ActiveRecord::Base
|
||||||
if !result.nil?
|
if !result.nil?
|
||||||
result.person
|
result.person
|
||||||
else
|
else
|
||||||
nil
|
person = nil
|
||||||
|
# Perhaps the event_people haven't been saved, if this is a new proposal
|
||||||
|
self.event_people.each do |p|
|
||||||
|
if p.event_role == "submitter"
|
||||||
|
person = p.person
|
||||||
|
end
|
||||||
|
end
|
||||||
|
person
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def as_json(options)
|
def as_json(options)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue