From ec6568ffbe733e966e460e5e95d6175ddb872cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 30 Oct 2020 08:01:58 +0100 Subject: [PATCH] work on members --- htdocs/adherents/class/api_members.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/class/api_members.class.php b/htdocs/adherents/class/api_members.class.php index 66bc91c0cf1..6a86c928d0d 100644 --- a/htdocs/adherents/class/api_members.class.php +++ b/htdocs/adherents/class/api_members.class.php @@ -415,7 +415,6 @@ class Members extends DolibarrApi protected function _cleanObjectDatas($object) { // phpcs:enable - $object = parent::_cleanObjectDatas($object); // Remove the subscriptions because they are handled as a subresource. unset($object->subscriptions); @@ -429,7 +428,10 @@ class Members extends DolibarrApi unset($object->total_ttc); unset($object->total_tva); unset($object->total_localtax1); - unset($object->total_localtax2); + unset($object->total_localtax2); + + // cleanObjectDatas return an array so need to be done after unset + $object = parent::_cleanObjectDatas($object); return $object; }