mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Fix HTTP AssetTransformer to generate an empty object for missing custom_fields instead of an empty array.
This commit is contained in:
parent
6a9131e771
commit
47ee2a8153
|
@ -131,7 +131,7 @@ class AssetsTransformer
|
||||||
$array['custom_fields'] = $fields_array;
|
$array['custom_fields'] = $fields_array;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$array['custom_fields'] = [];
|
$array['custom_fields'] = new stdClass; // HACK to force generation of empty object instead of empty list
|
||||||
}
|
}
|
||||||
|
|
||||||
$permissions_array['available_actions'] = [
|
$permissions_array['available_actions'] = [
|
||||||
|
|
Loading…
Reference in a new issue