Force object prop for custom fields
This commit is contained in:
parent
cc518b92dd
commit
bd34010ed5
|
|
@ -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 ?: '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue