2
0
forked from Wavyzz/dolibarr

NEW REST api: Add apis for expense reports

This commit is contained in:
Laurent Destailleur
2016-09-09 20:09:36 +02:00
parent aeffffe523
commit d7fce0cd24
3 changed files with 514 additions and 4 deletions

View File

@@ -91,6 +91,12 @@ class DolibarrApi
// Remove linkedObjects. We should already have linkedObjectIds that avoid huge responses
unset($object->linkedObjects);
unset($object->lignes); // should be lines
unset($object->statuts);
unset($object->statuts_short);
unset($object->statuts_logo);
// Remove the $oldcopy property because it is not supported by the JSON
// encoder. The following error is generated when trying to serialize
// it: "Error encoding/decoding JSON: Type is not supported"