Hello,
I'm using clientside_validation 7.x-1.34+28-dev (2012-09-25)
I noticed that there's a small typo in function _clientside_validation_set_number_decimal().
clientside_validation.module, row 568
'placeholers' => empty($message) ? array('!title' => $title) : array(),
Should probably be (notice the missing d in array key):
'placeholders' => empty($message) ? array('!title' => $title) : array(),
This results in a slightly malformed error message:
"!title field accepts only numbers (use a ',' as decimal point)."
Also I would like to know why the error message says "use a ',' as decimal point" when my webform field isn't accepting decimal points at all (the field is set as an integer with 0 decimals)? Is there a way of telling to the clientside validation module that the current field isn't accepting decimal points and therefore shouldn't be displaying that kind of error message to the user?
Thanks!
Comments
Comment #1
Jelle_SFixed in latest dev (typo and error message). Thanks for the report.
Comment #2
hartsak CreditAttribution: hartsak commentedThanks for the quick response!