Private GIT

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

#4954 fix poller statistics graphs

parent 15ef95cd
Branches
Tags
No related merge requests found
......@@ -66,7 +66,6 @@
jQuery('#pollers').addClass('pollerFilters');
jQuery('.pollerFilters').on('change', function() {
console.log('gg');
jQuery('#form').submit();
});
</script>
......
......@@ -61,7 +61,12 @@ if (!isset($oreon)) {
$DBRESULT = $pearDB->query("SELECT * FROM `nagios_server` WHERE `ns_activate` = 1 ORDER BY `name`");
while ($data = $DBRESULT->fetchRow()) {
if ($data['localhost']) {
if (isset($_POST['pollers']) && $_POST['pollers'] != "") {
if ($_POST['pollers'] == $data['id']) {
$defaultPoller[$data['name']] = $data['id'];
$pollerId = $data['id'];
}
} elseif ($data['localhost']) {
$defaultPoller[$data['name']] = $data['id'];
$pollerId = $data['id'];
}
......@@ -72,7 +77,7 @@ if (!isset($oreon)) {
$attrPollers = array(
'datasourceOrigin' => 'ajax',
'allowClear' => false,
'allowClear' => true,
'availableDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_monitoring_poller&action=list',
'multiple' => false,
'defaultDataset' => $defaultPoller,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment