Steps to replicate the issue (include links if applicable):
- In PHP code...
- Create a HTMLIntField
- Configure it so that min: 0
- In browser, viewing the form
- Set the HTMLIntField's value to blank
- Submit the form
What happens?:
- Form validation error
What should have happened instead?:
- Form submission succeeds
- Blank is written to the database
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- This came up in T397643: Make configuration of min edits optional in voter eligbility and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/1162974. If there's already a way to do this, please feel free to close this ticket and post a comment in that patch.
