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
Custom email templates lost upon changing language configuration #7098
Comments
Applying this change in |
Any chance this can be ported for 3.2 as well? |
@asmecher Can this fix safely be applied to 3.2.1-4 manually? We're going to upgrade to 3.3 soon but this is an important fix to have until then. Edit: as far as I can tell, the only difference is
instead of
|
Just leaving a note here that this same bug caused a situtation where reloading a locale in one context erased Component/Genre labels from all contexts. |
From https://forum.pkp.sfu.ca/t/records-in-email-templates-settings-are-deleted-when-enabling-forms-language-in-any-journal/68053 and https://forum.pkp.sfu.ca/t/ojs-3-2-1-1-email-templates-were-restored-to-default:
It appears that the email templates are removed when a locale is enabled (under "Forms" but probably elsewhere). This is happening due to...
LanguageGridHandler::saveLanguageSetting
callsPKPContextService::restoreLocaleDefaults
(this call is context specific; see also another similar call a few lines later)PKPContextService::restoreLocaleDefaults
then callsPKPLocale::reloadLocale
, which axes email templates for all contexts (!)The text was updated successfully, but these errors were encountered: