diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-02 09:51:02 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-02 09:51:02 +0000 |
| commit | 7c7db0c91438816b9babf2a133022db8eccc46ec (patch) | |
| tree | 49f885bfff26a7806cff14dfda23bc4b5921a4cb /frontends/php/report2.php | |
| parent | 053e091380bdeff1d9a423e1dfdcfcda396045d5 (diff) | |
| download | zabbix-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.php | 5 |
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(); |
