
[PATCH] LengthValidator error messages are inaccurate
Reported by isomorphix | August 18th, 2008 @ 02:54 AM
I have noticed that the error messages for the LengthValidator's min and max validators do not accurately reflect the validations that they represent.
For example, with :min => 6, the message would say "[field] must be more than 6 characters long", however the actual validation is inclusive.
Comments and changes to this ticket
-
Jonathan Stott (namelessjon) December 11th, 2008 @ 09:55 AM
- Assigned user changed from Sam Smoot to Jonathan Stott (namelessjon)
- State changed from new to confirmed
-
Balint Erdi December 29th, 2008 @ 03:43 AM
- Title changed from LengthValidator error messages are inaccurate to [PATCH] LengthValidator error messages are inaccurate
I attached the patch that corrects the wording.
-
Jonathan Stott (namelessjon) July 8th, 2009 @ 05:24 PM
The patch no longer applied, but the changes have been applied manually to the relevant sections and are available in a branch on github.
http://github.com/namelessjon/dm-more/tree/length_validator_messages
-
Dan Kubb (dkubb) July 8th, 2009 @ 05:28 PM
- State changed from confirmed to resolved
(from [8ee224d42e711fb71cebeeb40ba1942b2ca64634]) [dm-validations] Correct length validation messages
Previously, the length validation messages implied that they were
exclusive (e.g 'less than') when in fact the validations are inclusive.[#531 state:resolved]
Signed-off-by: Dan Kubb dan.kubb@gmail.com
http://github.com/datamapper/dm-more/commit/8ee224d42e711fb71cebeeb...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »