Boolean: keep value when validating

Might fix weird issues related to booleans
This commit is contained in:
Thomas Gelf 2017-08-18 16:15:30 +02:00
parent bd157b865b
commit fa3042c39f
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class Boolean extends ZfSelect
public function isValid($value, $context = null)
{
if ($value === 'y' || $value === 'n') {
$this->setValue($value);
return true;
}