mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix send emails because missing event program relation. fix #835
This commit is contained in:
parent
ac7149fbe5
commit
c9951b451a
2 changed files with 5 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ class Mailbot < ActionMailer::Base
|
|||
end
|
||||
|
||||
def acceptance_mail(event)
|
||||
conference = event.conference
|
||||
conference = event.program.conference
|
||||
person = event.submitter
|
||||
build_email(conference,
|
||||
person.email,
|
||||
|
|
@ -18,7 +18,7 @@ class Mailbot < ActionMailer::Base
|
|||
end
|
||||
|
||||
def rejection_mail(event)
|
||||
conference = event.conference
|
||||
conference = event.program.conference
|
||||
person = event.submitter
|
||||
build_email(conference,
|
||||
person.email,
|
||||
|
|
@ -27,7 +27,7 @@ class Mailbot < ActionMailer::Base
|
|||
end
|
||||
|
||||
def confirm_reminder_mail(event)
|
||||
conference = event.conference
|
||||
conference = event.program.conference
|
||||
person = event.submitter
|
||||
build_email(conference,
|
||||
person.email,
|
||||
|
|
@ -83,7 +83,7 @@ class Mailbot < ActionMailer::Base
|
|||
def send_notification_email_for_comment(comment)
|
||||
@comment = comment
|
||||
@event = @comment.commentable
|
||||
@conference = @event.conference
|
||||
@conference = @event.program.conference
|
||||
recipients = User.comment_notifiable(@conference) # with scope
|
||||
recipients.each do |user|
|
||||
@user = user
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class EmailSettings < ActiveRecord::Base
|
|||
|
||||
if event
|
||||
h['eventtitle'] = event.title
|
||||
h['proposalslink'] = Rails.application.routes.url_helpers.conference_proposal_index_url(
|
||||
h['proposalslink'] = Rails.application.routes.url_helpers.conference_program_proposal_index_url(
|
||||
conference.short_title, host: CONFIG['url_for_emails'])
|
||||
end
|
||||
h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue