ExtensibleSet: remove empty strings at filter time

This commit is contained in:
Thomas Gelf 2016-05-20 08:13:13 +02:00
parent 64fbdcfeee
commit df2a5899f6
1 changed files with 6 additions and 0 deletions

View File

@ -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) {