yiisoft/yii — pull request #1370 by sebmos (2012-09-10 12:31:06+00:00)
Title: Fix boolean empty validation

Currently, when a field has the boolean value false it won't validate. This change fixes that problem by accepting the false value as a value.

This is necessary for example for the EActiveResource-plugin (https://github.com/Haensel/ActiveResource), which has boolean fields. Since the values are string-casted when using trim($value) and false is casted as an empty string, the validation will fail.