1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Force object prop for custom fields

This commit is contained in:
David Bomba 2023-07-22 17:19:54 +10:00
parent cc518b92dd
commit bd34010ed5

View File

@ -133,7 +133,7 @@ class CompanyTransformer extends EntityTransformer
'show_product_details' => (bool) $company->show_product_details,
'enable_product_quantity' => (bool) $company->enable_product_quantity,
'default_quantity' => (bool) $company->default_quantity,
'custom_fields' => $company->custom_fields ?? $std,
'custom_fields' => (object) $company->custom_fields ?? $std,
'size_id' => (string) $company->size_id ?: '',
'industry_id' => (string) $company->industry_id ?: '',
'first_month_of_year' => (string) $company->first_month_of_year ?: '',