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)
|
||||
&& $object !== null
|
||||
&& preg_match('/DataTypeArray[\w]*$/', $object->datatype);
|
||||
&& (
|
||||
preg_match('/DataTypeArray[\w]*$/', $object->datatype)
|
||||
|| (
|
||||
preg_match('/DataTypeDatalist$/', $object->datatype)
|
||||
&& $object->format === 'json'
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue