summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-15 19:44:25 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-15 19:44:25 +0000
commit7a6872da8a3b20609d40c5a38bb45132fe296822 (patch)
tree63233f482422e696c91359c994a022d8c05be166 /frontends/php/include/config.inc.php
parentbfe45f44ba7804b8e02f4c58c0b1e16b39e38d43 (diff)
- fixed removing of an item under PostgreSQL (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1181 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 2f23c18d..fe3e1162 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -2142,6 +2142,14 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
return DBexecute($sql);
}
+ # Delete from Trends
+
+ function delete_trends_by_itemid( $itemid )
+ {
+ $sql="delete from trends where itemid=$itemid";
+ return DBexecute($sql);
+ }
+
function delete_trigger_dependency($triggerid_down,$triggerid_up)
{
@@ -2338,6 +2346,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
{
return $result;
}
+ $result=delete_trends_by_itemid($itemid);
$result=delete_history_by_itemid($itemid);
$sql="delete from graphs_items where itemid=$itemid";
if(!$result)