8000 [FrameworkBundle] Allowed "0" as a checkbox value in the php template. · symfony/symfony@955e8cf · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 955e8cf

Browse files
committed
[FrameworkBundle] Allowed "0" as a checkbox value in the php template.
1 parent 0c71cfa commit 955e8cf

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 type="checkbox"
22
<?php echo $view['form']->block($form, 'widget_attributes') ?>
3-
<?php if ($value): ?> value="<?php echo $view->escape($value) ?>"<?php endif ?>
3+
<?php if (strlen($value) > 0): ?> value="<?php echo $view->escape($value) ?>"<?php endif ?>
44
<?php if ($checked): ?> checked="checked"<?php endif ?>
55
/>

0 commit comments

Comments
 (0)
0