Skip to content

Commit 63f1191

Browse files
authored
Merge pull request #13 from vemaeg/feature/additional-false-values-for-sf-widget-form-input-checkbox
Added more "false"-values for the checkbox.
2 parents 4f77b57 + 32f25d6 commit 63f1191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widget/sfWidgetFormInputCheckbox.class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* This file is part of the symfony package.
55
* (c) Fabien Potencier <[email protected]>
6-
*
6+
*
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
@@ -69,7 +69,7 @@ protected function configure($options = array(), $attributes = array())
6969
*/
7070
public function render($name, $value = null, $attributes = array(), $errors = array())
7171
{
72-
if (null !== $value && $value !== false)
72+
if (null !== $value && $value !== false && $value !== '0' && $value !== 0)
7373
{
7474
$attributes['checked'] = 'checked';
7575
}

0 commit comments

Comments
 (0)