Permalink
Browse files

[Form] fixed allow render 0 and 0.0 numeric input values

  • Loading branch information...
dczech committed Jan 17, 2014
1 parent 6c86995 commit 82f98c4fb388f1ec919d2d074d38105c613c4d0a
@@ -1,5 +1,5 @@
<input
type="<?php echo isset($type) ? $view->escape($type) : 'text' ?>"
<?php if (!empty($value)): ?>value="<?php echo $view->escape($value) ?>"<?php endif ?>
<?php if (!empty($value) || is_numeric($value)): ?>value="<?php echo $view->escape($value) ?>"<?php endif ?>
<?php echo $view['form']->block($form, 'widget_attributes') ?>
/>

0 comments on commit 82f98c4

Please sign in to comment.