From 197feb0fe1c12a2b5a4e39c874d4eadf9751c0f3 Mon Sep 17 00:00:00 2001 From: moustachu Date: Thu, 28 Feb 2019 17:51:47 +0100 Subject: [PATCH] :bug: :leftwards_arrow_with_hook: fixes #457 - backport from https://github.com/decidim/decidim/pull/4892 --- decidim-core/app/mailers/concerns/decidim/localised_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-core/app/mailers/concerns/decidim/localised_mailer.rb b/decidim-core/app/mailers/concerns/decidim/localised_mailer.rb index d11e11ab7605d..f506615a5e1ec 100644 --- a/decidim-core/app/mailers/concerns/decidim/localised_mailer.rb +++ b/decidim-core/app/mailers/concerns/decidim/localised_mailer.rb @@ -13,7 +13,7 @@ module LocalisedMailer # # Returns nothing. def with_user(user) - I18n.with_locale(user.locale || I18n.locale) do + I18n.with_locale(user.locale || user.organization.default_locale) do yield end end