diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-31 07:42:04 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-31 07:42:04 +0000 |
| commit | cf058c2ec2bff2902940ebcb7b753267ac7bea98 (patch) | |
| tree | f7eea92cfd095f103b0b0ac1dda7fe4bba019152 /frontends/php/include/hosts.inc.php | |
| parent | cb6645a1e4f14f29e542d5342e927695452138d8 (diff) | |
| download | zabbix-cf058c2ec2bff2902940ebcb7b753267ac7bea98.tar.gz zabbix-cf058c2ec2bff2902940ebcb7b753267ac7bea98.tar.xz zabbix-cf058c2ec2bff2902940ebcb7b753267ac7bea98.zip | |
- fixed recursion coping of elements from template
git-svn-id: svn://svn.zabbix.com/trunk@3415 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
| -rw-r--r-- | frontends/php/include/hosts.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php index 834035cc..46fd29ee 100644 --- a/frontends/php/include/hosts.inc.php +++ b/frontends/php/include/hosts.inc.php @@ -375,7 +375,7 @@ require_once "include/items.inc.php"; function get_hosts_by_templateid($templateid) { - return DBselect("select * from hosts where templateid=$templateid"); + return DBselect("select h.* from hosts h, hosts_templates ht where h.hostid=ht.hostid and ht.templateid=$templateid"); } # Update Host status @@ -629,7 +629,7 @@ require_once "include/items.inc.php"; if(!$result) return $result; if($applicationid==null) - { + {// create application for childs $applicationid = $applicationid_new; $db_childs = get_hosts_by_templateid($hostid); |
