Clean API
This commit is contained in:
parent
613ed8bcfa
commit
9cfb0ac969
@ -1608,6 +1608,14 @@ class Setup extends DolibarrApi
|
|||||||
{
|
{
|
||||||
global $mysoc;
|
global $mysoc;
|
||||||
|
|
||||||
|
unset($mysoc->skype);
|
||||||
|
unset($mysoc->twitter);
|
||||||
|
unset($mysoc->facebook);
|
||||||
|
unset($mysoc->linkedin);
|
||||||
|
|
||||||
|
unset($mysoc->note);
|
||||||
|
unset($mysoc->lines);
|
||||||
|
|
||||||
return $this->_cleanObjectDatas($mysoc);
|
return $this->_cleanObjectDatas($mysoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1762,6 +1762,11 @@ class Thirdparties extends DolibarrApi
|
|||||||
|
|
||||||
unset($object->fk_delivery_address); // deprecated feature
|
unset($object->fk_delivery_address); // deprecated feature
|
||||||
|
|
||||||
|
unset($object->skype);
|
||||||
|
unset($object->twitter);
|
||||||
|
unset($object->facebook);
|
||||||
|
unset($object->linkedin);
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user