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

Channel Form can break on page POSTed by some other source #70

Closed
derekjones opened this Issue Dec 26, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@derekjones
Copy link
Contributor

derekjones commented Dec 26, 2018

Description of the problem

If a Channel Form is rendered on a template responding to another add-on's POST request, it can be thrown into the wrong logic branch because of the presence of POST data, as the Channel Form thinks it's responding to its own POST request. This can break some features, that are inside that logic gate, like the unique_url_title= parameter.

How To Reproduce
Steps to reproduce the behavior:

  1. Create a Channel Form in a template with the parameter unique_url_title=
  2. Submit a POST request to this template (contents do not matter)
  3. View source on the page, and notice that the hiddenFields' unique_url_title input is missing, and this form will not allow submission of identical titles.

Environment Details:

  • Version: 5.0.2
  • PHP Version [any]
  • MySQL Version [any]
  • OS: [any]
  • Web Server: [any]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment