Vote #75793
完了Localisation not set correctly on authenticity token errors
0%
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
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------