Private GIT

Skip to content
Snippets Groups Projects
Commit c31ef9b3 authored by Kevin Duret's avatar Kevin Duret
Browse files

#4868 Fix HTML export with filters

parent 59b581c9
Branches
Tags
No related merge requests found
...@@ -764,7 +764,7 @@ class CentreonServiceTemplate extends CentreonObject { ...@@ -764,7 +764,7 @@ class CentreonServiceTemplate extends CentreonObject {
} }
$telements = $trapRel->getMergedParameters(array("traps_name", "traps_id"), array('service_description'), -1, 0, null, null, $filters_trapRel, "AND"); $telements = $trapRel->getMergedParameters(array("traps_name", "traps_id"), array('service_description'), -1, 0, null, null, $filters_trapRel, "AND");
foreach ($telements as $telement) { foreach ($telements as $telement) {
$this->api->export_filter('TRAP', $element['traps_id'], $element['traps_name']); $this->api->export_filter('TRAP', $telement['traps_id'], $telement['traps_name']);
echo $this->action . $this->delim . "addtrap" . $this->delim . $telement['service_description'] . $this->delim . $telement['traps_name'] . "\n"; echo $this->action . $this->delim . "addtrap" . $this->delim . $telement['service_description'] . $this->delim . $telement['traps_name'] . "\n";
} }
...@@ -776,7 +776,7 @@ class CentreonServiceTemplate extends CentreonObject { ...@@ -776,7 +776,7 @@ class CentreonServiceTemplate extends CentreonObject {
} }
$helements = $hostRel->getMergedParameters(array("host_name", "host_id"), array('service_description'), -1, 0, null, null, $filters_hostRel, "AND"); $helements = $hostRel->getMergedParameters(array("host_name", "host_id"), array('service_description'), -1, 0, null, null, $filters_hostRel, "AND");
foreach ($helements as $helement) { foreach ($helements as $helement) {
$this->api->export_filter('HOST', $element['host_id'], $element['host_name']); $this->api->export_filter('HOST', $helement['host_id'], $helement['host_name']);
echo $this->action . $this->delim . "addhosttemplate" . $this->delim . $helement['service_description'] . $this->delim . $helement['host_name'] . "\n"; echo $this->action . $this->delim . "addhosttemplate" . $this->delim . $helement['service_description'] . $this->delim . $helement['host_name'] . "\n";
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment