Fix HTTP AssetTransformer to generate an empty object for missing custom_fields instead of an empty array.
This commit is contained in:
@@ -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'] = [
|
||||
|
||||
Reference in New Issue
Block a user