Skip to content

Commit c3ee252

Browse files
committed
[Form] fixed allow render 0 and 0.0 numeric input values
1 parent 8252822 commit c3ee252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<input
22
type="<?php echo isset($type) ? $view->escape($type) : 'text' ?>"
3-
<?php if (!empty($value)): ?>value="<?php echo $view->escape($value) ?>"<?php endif ?>
3+
<?php if (!empty($value) || is_numeric($value)): ?>value="<?php echo $view->escape($value) ?>"<?php endif ?>
44
<?php echo $view['form']->block($form, 'widget_attributes') ?>
55
/>

0 commit comments

Comments
 (0)