UnionOfRAD/lithium — pull request #771 by mehlah (2012-12-31 18:20:37+00:00)
Title: Fix bad radio and checkboxes values binding in case of booleans

In case of a `false` field value, the bindings for radio and checkboxes breaks, because of the second part of this condition, which is evaluated to `false`.

```php
if (!isset($options['checked']) && ($bound = $this->binding($name)->data)) {
$options['checked'] = ($bound == $default);
}
```

This PR adds a couple of test cases to show that, and fix the condition for both `radio()` and `checkbox()` Form helper methods