Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix locale was not set until terms acceptance, so the locale selected was lost #712

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

nflorentin
Copy link
Contributor

set_locale was called after check_for_terms_acceptance! before action.
So the locale was never saved until terms acceptance, causing some flash messages in wrong locale (ex: timeout session).

For more clarity, I also renamed append_before_action into before_action (because it is just an alias).

I think it solves #694

@markets
Copy link
Collaborator

markets commented Nov 23, 2023

Makes sense! Thanks @nflorentin

@markets markets merged commit b44d559 into coopdevs:develop Nov 23, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants