fix error for new in admin page
This commit is contained in:
parent
125a0879ec
commit
9203dbdb93
|
@ -321,7 +321,11 @@ class Admin::SeminarsController < OrbitAdminController
|
|||
content[locale] = t("seminar.email_#{field_name}_content")
|
||||
end
|
||||
I18n.locale = now_locale
|
||||
if save_flag
|
||||
email_set = @seminar.seminar_email_sets.create(field_name:field_name,title:title,content:content)
|
||||
else
|
||||
email_set = @seminar.seminar_email_sets.new(field_name:field_name,title:title,content:content)
|
||||
end
|
||||
else
|
||||
email_set = email_set[0]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue