Clean api rest

This commit is contained in:
Laurent Destailleur 2016-12-10 19:04:56 +01:00
parent ce41c84c95
commit cdba7cfa1c
2 changed files with 16 additions and 1 deletions

View File

@ -268,6 +268,21 @@ class Products extends DolibarrApi
return $categories->getListForItem('product', $sortfield, $sortorder, $limit, $page, $id); return $categories->getListForItem('product', $sortfield, $sortorder, $limit, $page, $id);
} }
/**
* Clean sensible object datas
*
* @param object $object Object to clean
* @return array Array of cleaned object properties
*/
function _cleanObjectDatas($object) {
$object = parent::_cleanObjectDatas($object);
unset($object->regeximgext);
return $object;
}
/** /**
* Validate fields before create or update object * Validate fields before create or update object
* *