diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-22 16:08:35 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-22 16:08:35 +0000 |
| commit | cfdccc6dd4f9d313f6cdc34f62f6453a1f5a1a0b (patch) | |
| tree | f1c9d0192496011e899f91dd9575db73d5cfc77a /frontends/php/include/items.inc.php | |
| parent | 1e241634d9beb1dc6368d270f8be45d158c66a18 (diff) | |
| download | zabbix-cfdccc6dd4f9d313f6cdc34f62f6453a1f5a1a0b.tar.gz zabbix-cfdccc6dd4f9d313f6cdc34f62f6453a1f5a1a0b.tar.xz zabbix-cfdccc6dd4f9d313f6cdc34f62f6453a1f5a1a0b.zip | |
- added hosekeeper support for frontend (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2675 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/items.inc.php')
| -rw-r--r-- | frontends/php/include/items.inc.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 3cf7dfc7..2d080f4c 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -378,14 +378,16 @@ $result = delete_triggers_by_itemid($itemid); if(!$result) return $result; - $result = delete_trends_by_itemid($itemid); - if(!$result) return $result; + $db_gitems = get_graphitem_by_itemid($itemid); + while($db_gitem = DBfetch($db_gitems)) + { + $result = delete_graph_by_itemid($db_gitem["graphid"]); + if(!$result) return $result; + } - $result = delete_history_by_itemid($itemid); + $result = delete_history_by_itemid($itemid, 1 /* use housekeeper */); if(!$result) return $result; - $result = DBexecute("delete from graphs_items where itemid=$itemid"); - if(!$result) return $result; $result = DBexecute("delete from items where itemid=$itemid"); if($result) |
