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

(De-)Activing a message template isn't possible #4008

Closed
tislars opened this issue Aug 25, 2022 · 6 comments · May be fixed by #4009
Closed

(De-)Activing a message template isn't possible #4008

tislars opened this issue Aug 25, 2022 · 6 comments · May be fixed by #4009
Assignees

Comments

@tislars
Copy link

tislars commented Aug 25, 2022

Describe the bug
Activating or deactivating a template does not seem to be saved. After saving a message template, the page reloads and the option is back to its original state.

To Reproduce

  1. Go to the menu item Event Espresso > Messages
  2. Go the tab Default message templates
  3. Edit a registrants message template (e.g. Automated Upcoming Event Notification)
  4. Active (or de-active if the option is already activated) the template
  5. Save the page
  6. The state of the template should be back to the previous state and not the state that you wanted

Expected behavior
I expected the state of the toggle to be saved in the state I changed it to.

Screenshots

image

Environment:

  • Version of Event Espresso: Dev branch at commit ccd490d
  • Version of WordPress: 5.9.3
  • Browser: FireFox 103.0.2 (also verified the bug exists on Google Chrome 104.0.5112.101)
  • PHP Version: 7.4.30

Additional context

The following Event Espresso plugins are active:

  • Automated Upcoming Event Notification (EE 4.9.44+) - 1.0.5.p
  • Grid View Template (EE 4.4.9+) - 1.2.4.p
  • Recurring Events Manager (EE 4.9+) - 1.0.0.rc.005
  • Wait Lists (EE4.9+) - 1.0.2.p
  • WP Users (EE4.6+) - 2.0.18.p
@garthkoyle
Copy link
Contributor

I can reproduce the issue too, but I'm using PHP 8.0.0.

@garthkoyle
Copy link
Contributor

This doesn't seem to be an issue with the AUEN add-on, all the message on/off toggles in dev don't stay switched on/off after trying to save the message.

@tn3rb
Copy link
Member

tn3rb commented Aug 25, 2022

fix pushed to #4009

@garthkoyle
Copy link
Contributor

@tislars please give this branch a try: fix-message-active-toggle

@tislars
Copy link
Author

tislars commented Aug 29, 2022

@garthkoyle The fix created by @tn3rb works. Thank you both for the quick response!

@tislars tislars closed this as completed Aug 29, 2022
@garthkoyle
Copy link
Contributor

@tn3rb this needs to be merged upstream.

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 a pull request may close this issue.

3 participants