ArrayCustomVariablesFilter: accept lists with...

..."Array" target data type

fixes #1241
This commit is contained in:
Thomas Gelf 2019-06-11 11:39:54 +02:00
parent 77bc311c42
commit f9ee098f06
1 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,12 @@ class ArrayCustomVariablesFilter extends CustomVariablesFilter
{
return parent::match($type, $name, $object)
&& $object !== null
&& preg_match('/DataTypeArray[\w]*$/', $object->datatype);
&& (
preg_match('/DataTypeArray[\w]*$/', $object->datatype)
|| (
preg_match('/DataTypeDatalist$/', $object->datatype)
&& $object->format === 'json'
)
);
}
}