Skip to content

Commit

Permalink
Fix 0 value in range field (#24939)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored and HLeithner committed May 18, 2019
1 parent 91d6dba commit 7a4f97f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/joomla/form/field/range.php
Expand Up @@ -60,8 +60,7 @@
$autofocus ? 'autofocus' : '',
);

$value = (float) $value;
$value = empty($value) ? $min : $value;
$value = is_numeric($value) ? (float) $value : $min;

?>
<input type="range" name="<?php
Expand Down

0 comments on commit 7a4f97f

Please sign in to comment.