Merge pull request #11286 from inietov/fixes/return_element_type_of_customfield

Fixes #11092 Add element type of customfield to API response
This commit is contained in:
snipe 2022-06-09 11:40:09 -07:00 committed by GitHub
commit 6a8824a467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,8 @@ class AssetsTransformer
'field' => e($field->convertUnicodeDbSlug()),
'value' => e($value),
'field_format' => $field->format,
'element' => $field->element,
];
} else {
@ -109,6 +111,7 @@ class AssetsTransformer
'field' => e($field->convertUnicodeDbSlug()),
'value' => e($asset->{$field->convertUnicodeDbSlug()}),
'field_format' => $field->format,
'element' => $field->element,
];