Skip to content
Snippets Groups Projects
Commit ea30033d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'main' of github.com:noesya/osuny

parents 9ca58e69 0ae64f70
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ class Admin::University::PeopleController < Admin::University::ApplicationContro
end
def create
@person.language_id = current_university.default_language_id
if @person.save_and_sync
redirect_to admin_university_person_path(@person),
notice: t('admin.successfully_created_html', model: @person.to_s)
......
......@@ -19,6 +19,7 @@ module User::WithPerson
person.last_name = last_name
person.slug = person.to_s.parameterize
person.user = self
person.language_id ||= university.default_language_id
person.save
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment