mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Transformer improvements
This commit is contained in:
parent
13cf06b0cd
commit
715fdf5e2d
@ -79,7 +79,10 @@ class CompanyShopProfileTransformer extends EntityTransformer
|
||||
|
||||
private function trimCompany($company)
|
||||
{
|
||||
$std = new \stdClass;
|
||||
|
||||
$trimmed_company_settings = [
|
||||
'custom_fields' => $company->custom_fields ?: $std,
|
||||
'custom_value1' => $company->settings->custom_value1,
|
||||
'custom_value2' => $company->settings->custom_value2,
|
||||
'custom_value3' => $company->settings->custom_value3,
|
||||
|
Loading…
Reference in New Issue
Block a user