Merge branch 'master' of https://github.com/openSUSE/osem into feature_tests2
This commit is contained in:
commit
53bc0a7dac
3 changed files with 23 additions and 18 deletions
|
|
@ -74,7 +74,9 @@ class ConferenceRegistrationController < ApplicationController
|
|||
if update_registration
|
||||
redirect_message = "Registration updated."
|
||||
else
|
||||
Mailbot.registration_mail(conference, current_user.person).deliver
|
||||
if conference.email_settings.send_on_registration?
|
||||
Mailbot.registration_mail(conference, current_user.person).deliver
|
||||
end
|
||||
end
|
||||
redirect_to(register_conference_path(:id => conference.short_title), :notice => redirect_message)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue