mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Add element type of customfield to API response
This commit is contained in:
parent
728338bfa8
commit
4a0eb2b3f1
|
@ -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,
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue