mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -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()),
|
'field' => e($field->convertUnicodeDbSlug()),
|
||||||
'value' => e($value),
|
'value' => e($value),
|
||||||
'field_format' => $field->format,
|
'field_format' => $field->format,
|
||||||
|
'element' =>$field->element,
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -109,6 +111,7 @@ class AssetsTransformer
|
||||||
'field' => e($field->convertUnicodeDbSlug()),
|
'field' => e($field->convertUnicodeDbSlug()),
|
||||||
'value' => e($asset->{$field->convertUnicodeDbSlug()}),
|
'value' => e($asset->{$field->convertUnicodeDbSlug()}),
|
||||||
'field_format' => $field->format,
|
'field_format' => $field->format,
|
||||||
|
'element' =>$field->element,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue