formbuilder icon indicating copy to clipboard operation
formbuilder copied to clipboard

Wrong operator in validateLength method in the Control class

Open flasica222 opened this issue 11 years ago • 0 comments

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:

  1. Create a textarea
  2. Set attribute minlength to 3
  3. Make validation using the method isValid and check the response

flasica222 avatar Mar 01 '14 22:03 flasica222