[Form] fixed allow render 0 and 0.0 numeric input values
This commit is contained in:
parent
6c86995052
commit
82f98c4fb3
@ -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') ?>
|
||||
/>
|
||||
|
Reference in New Issue
Block a user