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 Message Active Toggle #4009

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Fix Message Active Toggle #4009

wants to merge 3 commits into from

Conversation

tn3rb
Copy link
Member

@tn3rb tn3rb commented Aug 25, 2022

see #4008 for initial bug report

The form structure on that particular messages admin page does not follow the same pattern used on every other EE admin page. No idea why a "previous dev" did that but I was unaware when tweaking some of the layout recently. This accidently moved one form inside of the other, which obviously broke things.

This PR:

@garthkoyle
Copy link
Contributor

This works for me.

Copy link
Contributor

@hoseinrafiei hoseinrafiei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

id="ee-on-off-toggle-<?php echo esc_attr($context); ?>"
type="checkbox"
value="<?php echo esc_attr($on_off_action); ?>"
/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest moving type="checkbox" in front of the input tag in order to have more clear code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(De-)Activing a message template isn't possible
4 participants