ExtensibleSet: remove empty strings at filter time
This commit is contained in:
parent
64fbdcfeee
commit
df2a5899f6
|
@ -30,6 +30,12 @@ class ExtensibleSet extends FormElement
|
|||
return $value;
|
||||
}
|
||||
|
||||
protected function _filterValue(&$value, &$key)
|
||||
{
|
||||
$value = array_filter($value, 'strlen');
|
||||
return parent::_filterValue($value, $key);
|
||||
}
|
||||
|
||||
public function isValid($value, $context = null)
|
||||
{
|
||||
if ($value === null) {
|
||||
|
|
Loading…
Reference in New Issue