FIX #7619
This commit is contained in:
parent
745c4625a6
commit
79279caa2e
@ -336,7 +336,8 @@ class Contacts extends DolibarrApi
|
|||||||
* @url GET {id}/categories
|
* @url GET {id}/categories
|
||||||
*/
|
*/
|
||||||
function getCategories($id, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) {
|
function getCategories($id, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) {
|
||||||
$categories = new Categories();
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/api_categories.class.php';
|
||||||
|
$categories = new Categories(); // TODO Use Categories object not API object
|
||||||
return $categories->getListForItem($sortfield, $sortorder, $limit, $page, 'contact', $id);
|
return $categories->getListForItem($sortfield, $sortorder, $limit, $page, 'contact', $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -271,7 +271,8 @@ class Thirdparties extends DolibarrApi
|
|||||||
* @url GET {id}/categories
|
* @url GET {id}/categories
|
||||||
*/
|
*/
|
||||||
function getCategories($id, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) {
|
function getCategories($id, $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0) {
|
||||||
$categories = new Categories();
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/api_categories.class.php';
|
||||||
|
$categories = new Categories(); // TODO Use Categories object not API object
|
||||||
return $categories->getListForItem($sortfield, $sortorder, $limit, $page, 'customer', $id);
|
return $categories->getListForItem($sortfield, $sortorder, $limit, $page, 'customer', $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user