mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
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…
x
Reference in New Issue
Block a user