|
@@ -102,6 +102,7 @@ class DolibarrApi
|
|
|
unset($object->isextrafieldmanaged);
|
|
|
unset($object->ismultientitymanaged);
|
|
|
unset($object->restrictiononfksoc);
|
|
|
+ unset($object->table_rowid);
|
|
|
|
|
|
// Remove linkedObjects. We should already have linkedObjectIds that avoid huge responses
|
|
|
unset($object->linkedObjects);
|
|
@@ -149,6 +150,10 @@ class DolibarrApi
|
|
|
unset($object->context);
|
|
|
unset($object->next_prev_filter);
|
|
|
|
|
|
+ if ($object->table_element != 'ticket') {
|
|
|
+ unset($object->comments);
|
|
|
+ }
|
|
|
+
|
|
|
// 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"
|