Added auto_add_to_fieldsets to API response

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-25 20:59:48 -07:00
parent 67212f9d57
commit 28d9cec1e3

View file

@ -48,6 +48,7 @@ class CustomFieldsTransformer
'type' => e($field->element),
'required' => (($field->pivot) && ($field->pivot->required=='1')) ? true : false,
'display_in_user_view' => ($field->display_in_user_view =='1') ? true : false,
'auto_add_to_fieldsets' => ($field->auto_add_to_fieldsets == '1') ? true : false,
'created_at' => Helper::getFormattedDateObject($field->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($field->updated_at, 'datetime'),
];