mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
ArrayCustomVariablesFilter: accept lists with...
..."Array" target data type fixes #1241
This commit is contained in:
parent
77bc311c42
commit
f9ee098f06
@ -8,6 +8,12 @@ class ArrayCustomVariablesFilter extends CustomVariablesFilter
|
|||||||
{
|
{
|
||||||
return parent::match($type, $name, $object)
|
return parent::match($type, $name, $object)
|
||||||
&& $object !== null
|
&& $object !== null
|
||||||
&& preg_match('/DataTypeArray[\w]*$/', $object->datatype);
|
&& (
|
||||||
|
preg_match('/DataTypeArray[\w]*$/', $object->datatype)
|
||||||
|
|| (
|
||||||
|
preg_match('/DataTypeDatalist$/', $object->datatype)
|
||||||
|
&& $object->format === 'json'
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user