Clean api rest
This commit is contained in:
parent
ce41c84c95
commit
cdba7cfa1c
@ -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
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user