formbuilder
formbuilder copied to clipboard
Wrong operator in validateLength method in the Control class
Actual behavior:
- When validating length (validateLength() method) from Control class, for minlength the condition from the if contains the wrong validation: strlen($value) > $minlength
Expected behavior:
- In the check for minlength the condition in if should contain strlen($value) < $minlength
Description:
- Create a textarea
- Set attribute minlength to 3
- Make validation using the method isValid and check the response