mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +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;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function _filterValue(&$value, &$key)
|
||||||
|
{
|
||||||
|
$value = array_filter($value, 'strlen');
|
||||||
|
return parent::_filterValue($value, $key);
|
||||||
|
}
|
||||||
|
|
||||||
public function isValid($value, $context = null)
|
public function isValid($value, $context = null)
|
||||||
{
|
{
|
||||||
if ($value === null) {
|
if ($value === null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user