Skip to content
Snippets Groups Projects
Unverified Commit 0ae64f70 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix person lang

parent 1b7d800e
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)
......@@ -94,9 +95,6 @@ class Admin::University::PeopleController < Admin::University::ApplicationContro
:habilitation, :tenure, :url, :linkedin, :twitter, :mastodon,
:is_researcher, :is_teacher, :is_administration, :is_alumnus,
:user_id
).merge(
university_id: current_university.id,
language_id: current_university.default_language_id
)
).merge(university_id: current_university.id)
end
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