Bulk Invite from File resets the Invite Forum Mailer customized text

Ok I think I’m making some progress with this. I removed all custom themes and plugins from my test install and the issue is still happening.

What I’ve found is that if you don’t include the variables %{invitee_name} and %{site_domain_name} in the Invite Forum Mailer subject line, then the template will not save properly and will revert to what it was before. If I go to the Text Context tab under Customize, and try to save a change to invite_forum_mailer.subject_template that doesn’t include both of those variables, I get the following error message:
The following interpolation key(s) are missing: “invitee_name, site_domain_name”

So what appears to be happening is that trying to save the Invite Forum Mailer template does a behind the scenes check to make sure those variables are in the subject line and if they aren’t there, the change does not save even though no error message is given.

Steps to reproduce:

  1. Go to Settings->Customize->Email Templates
  2. Select Invite Forum Mailer
  3. Change the Subject to something that doesn’t include the necessary variables. For example just put in “test”
  4. Save Changes
  5. Exit the customization screen
  6. Go back to Settings->Customize->Email Templates
  7. Select Invite Forum Mailer
  8. Note that the Subject changes back to the default of “%{invitee_name} invited you to join %{site_domain_name}”
  9. If you attempt the above steps and make changes to the Subject that keep two required variables, the change will save properly. For example, change the Subject to “%{invitee_name} test %{site_domain_name}” and that change will save properly because the two variables are still in the Subject line.

Can you please try out the above procedure and let me know if you are able to reproduce it @techAPJ?