Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebouChu committed Jan 23, 2025
1 parent c3fde92 commit 2b48469
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/mailers/extranet_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ def invitation_message(extranet, person)

@user = @person.user
# If the person has a user, we use the user's email in priority as it can be used for login.
@email = @user.present? ? @user.email : @person.email
language = @user.present? ? @user.language : university.default_language
@email = @user.try(:email) || @person.email

language = @user.try(:language) || university.default_language
@extranet_name = @extranet.to_s_in(language)

I18n.with_locale(language.iso_code) do
Expand Down

0 comments on commit 2b48469

Please sign in to comment.