diff --git a/htdocs/api/class/api.class.php b/htdocs/api/class/api.class.php index 0d054402b7a..9582d20992f 100644 --- a/htdocs/api/class/api.class.php +++ b/htdocs/api/class/api.class.php @@ -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 diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 91825fa0d2b..9041586d3df 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -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; }