Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
clientside_validation
Commits
89c10c7d
Commit
89c10c7d
authored
Jul 11, 2014
by
daspeter
Committed by
jelles
Jul 11, 2014
Browse files
Issue #2167345 by das-peter, Nics | yannisc: Fixed Doesn't work with integer fields ranges.
parent
ccb22375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
clientside_validation_form/clientside_validation_form.module
clientside_validation_form/clientside_validation_form.module
+5
-1
No files found.
clientside_validation_form/clientside_validation_form.module
View file @
89c10c7d
...
...
@@ -107,7 +107,11 @@ function clientside_validation_regular($form_id, $element, &$js_rules, $form_sta
$max
=
$instance
[
'settings'
][
'max'
];
}
if
(
$min
!==
''
||
$max
!==
''
)
{
_clientside_validation_set_minmax
(
$el_name
,
$el_title
,
$min
,
$max
,
$js_rules
,
''
,
$field
[
'settings'
][
'decimal_separator'
]);
$decimal_separator
=
'.'
;
if
(
isset
(
$field
[
'settings'
][
'decimal_separator'
]))
{
$decimal_separator
=
$field
[
'settings'
][
'decimal_separator'
];
}
_clientside_validation_set_minmax
(
$el_name
,
$el_title
,
$min
,
$max
,
$js_rules
,
''
,
$decimal_separator
);
}
if
(
isset
(
$field
[
'settings'
][
'decimal_separator'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment