fix generating json tag for enum
This commit is contained in:
parent
bf96a68d58
commit
aadd7a5a7c
|
@ -330,7 +330,8 @@ function add_twig_filters(\Twig\Environment $twig)
|
|||
function(\mtgMetaField $field): string {
|
||||
$tag = get_field_alias_or_name($field);
|
||||
$type = $field->getType();
|
||||
if($type instanceof \mtgBuiltinType && !$type->isString() && !$type->isBlob()) {
|
||||
if($type instanceof \mtgMetaEnum ||
|
||||
($type instanceof \mtgBuiltinType && !$type->isString() && !$type->isBlob())) {
|
||||
return $tag.',string';
|
||||
}
|
||||
return $tag;
|
||||
|
|
Loading…
Reference in New Issue