プロジェクト

全般

プロフィール

Vote #75793

完了

Localisation not set correctly on authenticity token errors

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
I18n_37
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
37
version_id:
88
issue_org_id:
18499
author_id:
3866
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
81
ステータス-->[Closed]

journals

This error was discovered on "Planio":https://plan.io. The attached patch fixes the problem and adds a test to make sure it stays that way.

Maybe @set_localization@ should even be called at the end of @logged_user=@ to make sure a user change also changes the locale? (I haven't tested that though).
--------------------------------------------------------------------------------
Patch committed in r13670, thanks.

Felix Schäfer wrote:

> Maybe @set_localization@ should even be called at the end of @logged_user=@ to make sure a user change also changes the locale? (I haven't tested that though).

Not sure it would improve things, most @#logged_user=@ are followed by a redirect. And @#set_localization@ would still have to be called in a few places.
--------------------------------------------------------------------------------
Thanks for the quick merge!
--------------------------------------------------------------------------------
Pity, it doesn't help in 2.6.0develop
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリI18n_37 にセット
  • 対象バージョン2.6.1_88 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0