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 loadings of JS locales on install/update pages #18402

Merged

Conversation

cedric-anne
Copy link
Member

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.

Description

Required for #18296 .

The locales were not loaded on the JS side in the install/update process. Instead of implementing a custom piece of code, I reused the layout/parts/head.html.twig template that contains a call to {{ locales_js() }}.

It also replaces #18400.

@cedric-anne
Copy link
Member Author

Please note that I also removed the usage of the debug mode in install/update process. As we now throw exceptions when a SQL error occurs, and as our code evolves to become more defensive, I think it is no longuer necessary.

@cedric-anne cedric-anne merged commit 5075120 into glpi-project:main Nov 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants