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

This commit is contained in:
Dariusz Czech 2014-01-17 17:40:59 +01:00
parent 6c86995052
commit 82f98c4fb3

View File

@ -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') ?>
/>