diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-02 14:30:09 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-02 14:30:09 +0000 |
| commit | 5160f49d9546dc4a33fff23e75b03b5ac13de570 (patch) | |
| tree | 6ca1d0e6dd639e25aa4d5d2bed4cc2bcc0593c8b /frontends/php/include/items.inc.php | |
| parent | 674c41240eec523885688bed0a649548ac9b2086 (diff) | |
| download | zabbix-5160f49d9546dc4a33fff23e75b03b5ac13de570.tar.gz zabbix-5160f49d9546dc4a33fff23e75b03b5ac13de570.tar.xz zabbix-5160f49d9546dc4a33fff23e75b03b5ac13de570.zip | |
- added deletion from favorites on deleting items,graphs,screens,maps.. (Artem)
- changes resources for favorites (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5579 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, 4 insertions, 2 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 85901a41..a1eb118f 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -813,8 +813,10 @@ if(!$result) return $result; $result = DBexecute("delete from items where itemid=$itemid"); - if($result) - { + if(!$result) return $result; + + $result = rm4favorites('web.favorite.graphids',$itemid,ZBX_FAVORITES_ALL,'itemid'); + if($result){ info("Item '".$host["host"].":".$item["key_"]."' deleted"); } return $result; |
