Commit 9c29efa6 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1822820 by Kevin Rogers: Fixed 'Use only numbers at %field.' message...

Issue #1822820 by Kevin Rogers: Fixed 'Use only numbers at %field.' message should always include field name.[D
parent 3baa96b2
......@@ -145,9 +145,6 @@ function _clientside_validation_set_fapi_validation($element, $rule, $params, &$
else {
$expression = '/\d+\.\d+/';
}
if (strpos($message, '%field') !== FALSE) {
$message = t($message, array('%field' => variable_get('clientside_validation_prefix', '') . $title . variable_get('clientside_validation_suffix', '')));
}
_clientside_validation_set_regex_pcre($name, $title, $js_rules, $expression, $message, 'decimal');
break;
default:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment