From 8e1885e4064aa2676dcbe252f469f9d77f581207 Mon Sep 17 00:00:00 2001 From: Pichi1966 <57623859+josett225@users.noreply.github.com> Date: Wed, 12 Jun 2024 19:21:28 +0200 Subject: [PATCH] Update api_categories.class.php --- htdocs/categories/class/api_categories.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/categories/class/api_categories.class.php b/htdocs/categories/class/api_categories.class.php index 8c3ee02ee8e5f..3afc71477d67e 100644 --- a/htdocs/categories/class/api_categories.class.php +++ b/htdocs/categories/class/api_categories.class.php @@ -750,7 +750,7 @@ private function _validate($data) * Get the list of objects in a category. * * @param int $id ID of category - * @param string $type Type of category ('member', 'customer', 'supplier', 'product', 'contact', 'project', 'actioncomm') + * @param string $type Type of category ('member', 'customer', 'supplier', 'product', 'contact', 'project') * @param int $onlyids Return only ids of objects (consume less memory) * * @return mixed @@ -797,9 +797,7 @@ public function getObjects($id, $type, $onlyids = 0) $objects_api = new Contacts(); } elseif ($type == 'project') { $objects_api = new Projects(); - } elseif ($type == 'actioncomm') { - $objects_api = new Actioncomm(); - } + } if (is_object($objects_api)) { foreach ($objects as $obj) { $cleaned_objects[] = $objects_api->_cleanObjectDatas($obj);