Commit 73e221e3 authored by Peter Droogmans's avatar Peter Droogmans
Browse files

Issue #1503248 by Stepan Kabele: Fixed Integer min value not checked when max value is not entered.

parent 956d44b6
......@@ -76,7 +76,7 @@ function clientside_validation_regular($form_id, $element, &$js_rules, $form_sta
if (isset($instance['settings']['max'])) {
$max = $instance['settings']['max'];
}
if ($min !== '' && $max != '') {
if ($min !== '' || $max !== '') {
_clientside_validation_set_minmax($el_name, $el_title, $min, $max, $js_rules);
}
......
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