diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-30 10:27:04 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-30 10:27:04 +0000 |
| commit | 012b99f4e81fbe0b4fd67ef086353f5d45b6be96 (patch) | |
| tree | 99aacc6ec4c68bf8aaf56d08286a1672edf62e37 /frontends/php/include/items.inc.php | |
| parent | 2d80a93148ef470b402b0e57ef892c63c85aae98 (diff) | |
| download | zabbix-012b99f4e81fbe0b4fd67ef086353f5d45b6be96.tar.gz zabbix-012b99f4e81fbe0b4fd67ef086353f5d45b6be96.tar.xz zabbix-012b99f4e81fbe0b4fd67ef086353f5d45b6be96.zip | |
- added availability of template items changing directly on host (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3410 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/items.inc.php')
| -rw-r--r-- | frontends/php/include/items.inc.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index cf7ae987..98a25bba 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -355,10 +355,6 @@ DBexecute("update items set lastlogsize=0 where itemid=$itemid and key_<>".zbx_dbstr($key)); - if($templateid==0){ - update_item_status($itemid, $status); - } - $result = DBexecute("delete from items_applications where itemid=$itemid"); foreach($applications as $appid) { @@ -368,7 +364,7 @@ $result=DBexecute( "update items set description=".zbx_dbstr($description).",key_=".zbx_dbstr($key).",". - "hostid=$hostid,delay=$delay,history=$history,nextcheck=0,type=$type,". + "hostid=$hostid,delay=$delay,history=$history,nextcheck=0,type=$type,status=".$status.','. "snmp_community=".zbx_dbstr($snmp_community).",snmp_oid=".zbx_dbstr($snmp_oid).",". "value_type=$value_type,trapper_hosts=".zbx_dbstr($trapper_hosts).",". "snmp_port=$snmp_port,units=".zbx_dbstr($units).",multiplier=$multiplier,delta=$delta,". |
