Transformer improvements
This commit is contained in:
parent
13cf06b0cd
commit
715fdf5e2d
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue