mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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?
|
||||
result.person
|
||||
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
|
||||
def as_json(options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue