mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
work on members
This commit is contained in:
@@ -415,6 +415,7 @@ 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);
|
||||
@@ -428,10 +429,7 @@ class Members extends DolibarrApi
|
||||
unset($object->total_ttc);
|
||||
unset($object->total_tva);
|
||||
unset($object->total_localtax1);
|
||||
unset($object->total_localtax2);
|
||||
|
||||
// cleanObjectDatas return an array so need to be done after unset
|
||||
$object = parent::_cleanObjectDatas($object);
|
||||
unset($object->total_localtax2);
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user