Clean API

This commit is contained in:
Laurent Destailleur 2020-12-04 23:55:47 +01:00
parent 613ed8bcfa
commit 9cfb0ac969
2 changed files with 13 additions and 0 deletions

View File

@ -1608,6 +1608,14 @@ class Setup extends DolibarrApi
{
global $mysoc;
unset($mysoc->skype);
unset($mysoc->twitter);
unset($mysoc->facebook);
unset($mysoc->linkedin);
unset($mysoc->note);
unset($mysoc->lines);
return $this->_cleanObjectDatas($mysoc);
}

View File

@ -1762,6 +1762,11 @@ class Thirdparties extends DolibarrApi
unset($object->fk_delivery_address); // deprecated feature
unset($object->skype);
unset($object->twitter);
unset($object->facebook);
unset($object->linkedin);
return $object;
}