We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8252822 commit c3ee252Copy full SHA for c3ee252
Resources/views/Form/form_widget_simple.html.php
@@ -1,5 +1,5 @@
1
<input
2
type="<?php echo isset($type) ? $view->escape($type) : 'text' ?>"
3
- <?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 ?>
4
<?php echo $view['form']->block($form, 'widget_attributes') ?>
5
/>
0 commit comments