From 5c3768ceaa3080321c3bf6481640fcdd380d0025 Mon Sep 17 00:00:00 2001 From: artem Date: Wed, 23 Jul 2008 09:37:47 +0000 Subject: - [DEV-192] added filter to Status of triggers (Artem) - [DEV-191] monitoring screens inline update preparation (Artem) - [DEV-192] added severity filter in status of triggers (Artem) - [DEV-137] sql fixes for oracle (Artem) - [ZBX-396] fixed error maps message (Artem) - [ZBX-394] fixed showing hosts without group in status of triggers (Artem) - [DEV-137] small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5841 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/screens.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontends/php/screens.php') diff --git a/frontends/php/screens.php b/frontends/php/screens.php index 5e731b3a..bed79eb8 100644 --- a/frontends/php/screens.php +++ b/frontends/php/screens.php @@ -234,7 +234,7 @@ include_once "include/page_header.php"; validate_group_with_host(PERM_READ_ONLY,$options); $availiable_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST); - $availiable_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_LIST); + $availiable_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_LIST,PERM_RES_IDS_ARRAY); $r_form = new CForm(); $r_form->SetMethod('get'); @@ -274,7 +274,7 @@ include_once "include/page_header.php"; ' AND h.hostid=i.hostid '. ' AND hg.groupid='.$_REQUEST['groupid']. ' AND hg.hostid=h.hostid '. - ' AND h.hostid IN ('.$availiable_hosts.') '. + ' AND '.DBcondition('h.hostid',$available_hosts). ' ORDER BY h.host'; } else{ @@ -283,7 +283,7 @@ include_once "include/page_header.php"; ' WHERE h.status='.HOST_STATUS_MONITORED. ' AND i.status='.ITEM_STATUS_ACTIVE. ' AND h.hostid=i.hostid'. - ' AND h.hostid IN ('.$availiable_hosts.') '. + ' AND '.DBcondition('h.hostid',$available_hosts). ' ORDER BY h.host'; } -- cgit