Fix HTTP AssetTransformer to generate an empty object for missing custom_fields instead of an empty array.

This commit is contained in:
Fernando Almeida 2022-11-14 16:31:08 +00:00
parent 6a9131e771
commit 47ee2a8153

View file

@ -131,7 +131,7 @@ class AssetsTransformer
$array['custom_fields'] = $fields_array;
}
} else {
$array['custom_fields'] = [];
$array['custom_fields'] = new stdClass; // HACK to force generation of empty object instead of empty list
}
$permissions_array['available_actions'] = [