Changes to email templates not saving: A user reported issues with saving changes to email templates, specifically the Account Created and Invite Mailer templates. Despite the “Saved!” message, changes were lost upon refreshing the page. The issue occurred in both Firefox and Safari. erlend_sh and jomaxro mentioned that they had encountered or attempted to reproduce the issue previously.
gerhard fixed the bug, which now triggers an error when attempting to save an email template with missing interpolation keys. Additionally, changes to email templates now create an entry in the Staff Log. A related issue with reverting changes to email templates or site text has been identified, and a potential solution is awaiting review. Pad_Pors had reported similar issues in the past, but omitting interpolation keys is currently not possible.
Bonus: Changing an email template will create an entry in the Staff Log. That didn’t happen before.
While testing this I also noticed that reverting changes to an email template or site text can result in a “translation missing” error. I think I found a solution for that as well, but I’m not comfortable merging it in until someone else from the team takes a look at it.
@Pad_Pors Unfortunately it’s currently not possible to omit interpolation keys.