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

Ignore minlength/maxlength/minval/maxval in hidden fields #1817

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

qzminski
Copy link
Member

As a follow-up on #1699. Steps to reproduce the problem:

  1. Create a new form field of text type in form generator.
  2. Add some validation like minlength/maxlength/minval/maxval.
  3. Switch to the hidden type.
  4. The form submission can now fail due to "hidden" error for that field.

It might be somewhat a BC break for some projects but IMO it's a bug.

@aschempp
Copy link
Member

shouldn't this be fixed in Contao 4.4 as well?

@aschempp aschempp added the bug label Jun 12, 2020
@aschempp aschempp added this to the 4.9 milestone Jun 12, 2020
@qzminski
Copy link
Member Author

Not sure, I just took your PR as a reference and that one was merged to 4.9 🤷🏻‍♂️

@leofeyer leofeyer merged commit 61d74e4 into contao:4.9 Jun 15, 2020
@leofeyer
Copy link
Member

Thank you @qzminski.

@qzminski qzminski deleted the bugfix/minval-maxval-hidden-input branch January 23, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants