From 28d9cec1e3f9aa194ad3776df8329d4e72e2de2c Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 25 Apr 2023 20:59:48 -0700 Subject: [PATCH] Added auto_add_to_fieldsets to API response Signed-off-by: snipe --- app/Http/Transformers/CustomFieldsTransformer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Transformers/CustomFieldsTransformer.php b/app/Http/Transformers/CustomFieldsTransformer.php index 9ada5183ab..db467be0bd 100644 --- a/app/Http/Transformers/CustomFieldsTransformer.php +++ b/app/Http/Transformers/CustomFieldsTransformer.php @@ -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'), ];