summaryrefslogtreecommitdiffstats
path: root/frontends/php/report2.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-02 09:51:02 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-02 09:51:02 +0000
commit7c7db0c91438816b9babf2a133022db8eccc46ec (patch)
tree49f885bfff26a7806cff14dfda23bc4b5921a4cb /frontends/php/report2.php
parent053e091380bdeff1d9a423e1dfdcfcda396045d5 (diff)
downloadzabbix-7c7db0c91438816b9babf2a133022db8eccc46ec.tar.gz
zabbix-7c7db0c91438816b9babf2a133022db8eccc46ec.tar.xz
zabbix-7c7db0c91438816b9babf2a133022db8eccc46ec.zip
- [DEV-134] fix in "Availability report" for node switch (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4969 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report2.php')
-rw-r--r--frontends/php/report2.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/report2.php b/frontends/php/report2.php
index e4ebd350..502b83d4 100644
--- a/frontends/php/report2.php
+++ b/frontends/php/report2.php
@@ -40,7 +40,10 @@ include_once "include/page_header.php";
check_fields($fields);
// validate_group_with_host(PERM_READ_LIST,array("always_select_first_host","monitored_hosts","with_items"));
- validate_group_with_host(PERM_READ_LIST,array("allow_all_hosts","always_select_first_host","monitored_hosts","with_items"));
+ $options = array("allow_all_hosts","always_select_first_host","monitored_hosts","with_items");
+ if(!$ZBX_WITH_SUBNODES) array_push($options,"only_current_node");
+
+ validate_group_with_host(PERM_READ_LIST,$options);
?>
<?php
$r_form = new CForm();