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