Don't crash on sending registration emails
This commit is contained in:
parent
138106c2fb
commit
64b9764b07
1 changed files with 1 additions and 1 deletions
|
|
@ -8,12 +8,12 @@ class EmailSettings < ActiveRecord::Base
|
||||||
"email" => person.email,
|
"email" => person.email,
|
||||||
"name" => person.public_name,
|
"name" => person.public_name,
|
||||||
"conference" => conference.title,
|
"conference" => conference.title,
|
||||||
"proposalslink" => Rails.application.routes.url_helpers.conference_proposal_url(conference.short_title, event, :host => OSEM_CONFIG["url_for_emails"]),
|
|
||||||
"registrationlink" => Rails.application.routes.url_helpers.register_conference_url(conference.short_title, :host => OSEM_CONFIG["url_for_emails"])
|
"registrationlink" => Rails.application.routes.url_helpers.register_conference_url(conference.short_title, :host => OSEM_CONFIG["url_for_emails"])
|
||||||
}
|
}
|
||||||
|
|
||||||
if !event.nil?
|
if !event.nil?
|
||||||
h["eventtitle"] = event.title
|
h["eventtitle"] = event.title
|
||||||
|
h["proposalslink"] = Rails.application.routes.url_helpers.conference_proposal_url(conference.short_title, event, :host => OSEM_CONFIG["url_for_emails"])
|
||||||
end
|
end
|
||||||
h
|
h
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue