From 053e091380bdeff1d9a423e1dfdcfcda396045d5 Mon Sep 17 00:00:00 2001 From: artem Date: Fri, 2 Nov 2007 09:49:44 +0000 Subject: - [ZBX-134] merged rev. 4956:4966 of branches/1.4/ (Artem) (fixes for hostid/groupid validation on Node switch) git-svn-id: svn://svn.zabbix.com/trunk@4968 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/latest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontends/php/latest.php') diff --git a/frontends/php/latest.php b/frontends/php/latest.php index 25ef9993..5ce03428 100644 --- a/frontends/php/latest.php +++ b/frontends/php/latest.php @@ -47,8 +47,11 @@ include_once "include/page_header.php"; ); check_fields($fields); + + $options = array("allow_all_hosts","always_select_first_host","monitored_hosts","with_monitored_items"); + if(!$ZBX_WITH_SUBNODES) array_push($options,"only_current_node"); - validate_group_with_host(PERM_READ_ONLY,array("allow_all_hosts","always_select_first_host","monitored_hosts","with_monitored_items")); + validate_group_with_host(PERM_READ_ONLY,$options); ?>