Modify ↓
Ticket #2230 (closed bug: fixed)
[validate] custom messages are lost when min/max are converted to range
| Reported by: | Romirez | Owned by: | joern |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.3 |
| Component: | plugin | Version: | 1.2.2 |
| Keywords: | validate | Cc: | |
| Blocking: | Blocked by: |
Description
The code in the validate 1.2 plugin that converts the minlength and maxlength to rangelength (and min and max to range) ignores the fact that these rules may have error messages associated with them, and defaults to the standard range error message instead of using them.
I'm not quite sure what the purpose of that code is anyway, since minlength and maxlength are sometimes both necessary for the express purpose of having different error messages.
Attachments
Change History
Changed 5 years ago by Romirez
-
attachment
jquery.validate.js.patch
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

patch to remove the code that causes this