$type is mandatory
This commit is contained in:
parent
100827ae0b
commit
0f907fbc29
@ -282,7 +282,7 @@ class Categories extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @url GET /object/{type}/{id}
|
* @url GET /object/{type}/{id}
|
||||||
*/
|
*/
|
||||||
public function getListForObject($id, $type = 'customer', $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0)
|
public function getListForObject($id, $type, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0)
|
||||||
{
|
{
|
||||||
// TODO add other types
|
// TODO add other types
|
||||||
if (!in_array($type, ['product'/*, 'member', 'customer', 'supplier', 'contact'*/])) {
|
if (!in_array($type, ['product'/*, 'member', 'customer', 'supplier', 'contact'*/])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user