Skip to content

Commit

Permalink
[Form] fixed allow render 0 and 0.0 numeric input values
Browse files Browse the repository at this point in the history
  • Loading branch information
dczech committed Jan 17, 2014
1 parent 6c86995 commit 82f98c4
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.