bug #10053 [Form] fixed allow render 0 numeric input value (dczech)
This PR was merged into the 2.3 branch.
Discussion
----------
[Form] fixed allow render 0 numeric input value
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #10052
| License | MIT
| Doc PR |
Commits
-------
82f98c4
[Form] fixed allow render 0 and 0.0 numeric input values
This commit is contained in:
commit
c8734aaa4d
@ -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