diff --git a/www/class/centreon-clapi/centreonCentbrokerCfg.class.php b/www/class/centreon-clapi/centreonCentbrokerCfg.class.php index d88a8580d99c6fc25416042e921c1406cc23ed6d..8a9f332a9bee2499c5b0cb594b18205a69ae4e66 100644 --- a/www/class/centreon-clapi/centreonCentbrokerCfg.class.php +++ b/www/class/centreon-clapi/centreonCentbrokerCfg.class.php @@ -693,8 +693,14 @@ class CentreonCentbrokerCfg extends CentreonObject * * @return void */ - public function export($filters = null) + public function export($filter_id = null, $filter_name = null) { + $filters = null; + if (!is_null($filter_id)) { + $filters = array( + $this->object->getPrimaryKey() => $filter_id + ); + } $elements = $this->object->getList("*", -1, 0, null, null, $filters, "AND"); foreach ($elements as $element) {