Boolean: keep value when validating
Might fix weird issues related to booleans
This commit is contained in:
parent
bd157b865b
commit
fa3042c39f
|
@ -31,6 +31,7 @@ class Boolean extends ZfSelect
|
|||
public function isValid($value, $context = null)
|
||||
{
|
||||
if ($value === 'y' || $value === 'n') {
|
||||
$this->setValue($value);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue