From 6fd4725d7853b16f1fd9ff7e4a8e8332f1f6b326 Mon Sep 17 00:00:00 2001
From: Guillaume28 <gbaldo@centreon.com>
Date: Tue, 6 Mar 2018 10:37:17 +0100
Subject: [PATCH] fix(export): wrong parameter for export HG

---
 www/class/centreon-clapi/centreonHostGroup.class.php | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/www/class/centreon-clapi/centreonHostGroup.class.php b/www/class/centreon-clapi/centreonHostGroup.class.php
index 67d74e62c8..ae65584760 100644
--- a/www/class/centreon-clapi/centreonHostGroup.class.php
+++ b/www/class/centreon-clapi/centreonHostGroup.class.php
@@ -278,16 +278,8 @@ class CentreonHostGroup extends CentreonObject
      *
      * @return void
      */
-    public function export($filter_id = null, $filter_name = null)
+    public function export($filters = null)
     {
-        $filters = array();
-        if (!is_null($filter_id) && $filter_id !== 0) {
-            $filters['hg_id'] = $filter_id;
-        }
-        if (!is_null($filter_name)) {
-            $filters['hg_name'] = $filter_name;
-        }
-
         parent::export($filters);
         $relObj = new \Centreon_Object_Relation_Host_Group_Host($this->dependencyInjector);
         $hostObj = new \Centreon_Object_Host($this->dependencyInjector);
-- 
GitLab