Clean api from bad vars

This commit is contained in:
Laurent Destailleur 2019-11-02 14:20:43 +01:00
parent 1b5ca2418b
commit 1cc9954f61
2 changed files with 9 additions and 0 deletions

View File

@ -146,6 +146,7 @@ class DolibarrApi
unset($object->skip_update_total);
unset($object->context);
unset($object->next_prev_filter);
// Remove the $oldcopy property because it is not supported by the JSON
// encoder. The following error is generated when trying to serialize

View File

@ -1676,6 +1676,12 @@ class Thirdparties extends DolibarrApi
$object = parent::_cleanObjectDatas($object);
unset($object->nom); // ->name already defined and nom deprecated
unset($object->name_bis); // ->name_alias already defined
unset($object->note); // ->note_private and note_public already defined
unset($object->departement);
unset($object->departement_code);
unset($object->pays);
unset($object->particulier);
unset($object->total_ht);
unset($object->total_tva);
@ -1686,6 +1692,8 @@ class Thirdparties extends DolibarrApi
unset($object->lines);
unset($object->thirdparty);
unset($object->fk_delivery_address); // deprecated feature
return $object;
}