Private GIT

Skip to content
Snippets Groups Projects
Commit 6fd4725d authored by Guillaume28's avatar Guillaume28
Browse files

fix(export): wrong parameter for export HG

parent e1e872b7
No related branches found
No related tags found
No related merge requests found
...@@ -278,16 +278,8 @@ class CentreonHostGroup extends CentreonObject ...@@ -278,16 +278,8 @@ class CentreonHostGroup extends CentreonObject
* *
* @return void * @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); parent::export($filters);
$relObj = new \Centreon_Object_Relation_Host_Group_Host($this->dependencyInjector); $relObj = new \Centreon_Object_Relation_Host_Group_Host($this->dependencyInjector);
$hostObj = new \Centreon_Object_Host($this->dependencyInjector); $hostObj = new \Centreon_Object_Host($this->dependencyInjector);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment