mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #21387 from ptibogxiv/patch-22
Fix REST API for categories
This commit is contained in:
commit
d2ed38ee1b
|
|
@ -51,10 +51,13 @@ class Categories extends DolibarrApi
|
|||
4 => 'contact',
|
||||
5 => 'account',
|
||||
6 => 'project',
|
||||
//7 => 'user',
|
||||
//8 => 'bank_line',
|
||||
//9 => 'warehouse',
|
||||
//10 => 'actioncomm',
|
||||
7 => 'user',
|
||||
8 => 'bank_line',
|
||||
9 => 'warehouse',
|
||||
10 => 'actioncomm',
|
||||
11 => 'website_page',
|
||||
12 => 'ticket',
|
||||
13 => 'knowledgemanagement'
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
@ -662,6 +665,10 @@ class Categories extends DolibarrApi
|
|||
$object = parent::_cleanObjectDatas($object);
|
||||
|
||||
// Remove fields not relevent to categories
|
||||
unset($object->MAP_CAT_FK);
|
||||
unset($object->MAP_CAT_TABLE);
|
||||
unset($object->MAP_OBJ_CLASS);
|
||||
unset($object->MAP_OBJ_TABLE);
|
||||
unset($object->country);
|
||||
unset($object->country_id);
|
||||
unset($object->country_code);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user