From 012b99f4e81fbe0b4fd67ef086353f5d45b6be96 Mon Sep 17 00:00:00 2001 From: osmiy Date: Mon, 30 Oct 2006 10:27:04 +0000 Subject: - added availability of template items changing directly on host (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3410 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/items.inc.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'frontends/php/include/items.inc.php') 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,". -- cgit