diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-31 08:05:54 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-31 08:05:54 +0000 |
| commit | 3eea91a6fdd3ae1c667e25de6ffdf5546774f915 (patch) | |
| tree | 9b531ac2bb71cff205afd097e92bc91eba589404 /frontends/php/include/items.inc.php | |
| parent | cf058c2ec2bff2902940ebcb7b753267ac7bea98 (diff) | |
| download | zabbix-3eea91a6fdd3ae1c667e25de6ffdf5546774f915.tar.gz zabbix-3eea91a6fdd3ae1c667e25de6ffdf5546774f915.tar.xz zabbix-3eea91a6fdd3ae1c667e25de6ffdf5546774f915.zip | |
recommited revisions r3410 and r3411
git-svn-id: svn://svn.zabbix.com/trunk@3416 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,". |
