summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-15 12:36:14 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-01-15 12:36:14 +0000
commita7b382a7f0cd46f412a6c5409a2040995b7154fe (patch)
treea7aa0d5776adffa018b868f178824a1e11bc373e /frontends/php/items.php
parentaeabebeca2ecf958e053f1fd6ebb2c980df20a81 (diff)
downloadzabbix-a7b382a7f0cd46f412a6c5409a2040995b7154fe.tar.gz
zabbix-a7b382a7f0cd46f412a6c5409a2040995b7154fe.tar.xz
zabbix-a7b382a7f0cd46f412a6c5409a2040995b7154fe.zip
- keep host selection when adding/deleting/updating item (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1613 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index a74178b8..bf1e2771 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -201,7 +201,8 @@
<?php
- if(isset($_GET["hostid"])&&!isset($_GET["type"]))
+ if(isset($_GET["hostid"]))
+// if(isset($_GET["hostid"])&&!isset($_GET["type"]))
{
table_begin();
table_header(array(S_ID,S_KEY,S_DESCRIPTION,nbsp(S_UPDATE_INTERVAL),S_HISTORY,S_TRENDS,S_TYPE,S_STATUS,S_ERROR,S_ACTIONS));
@@ -260,7 +261,7 @@
}
$actions=iif(check_right("Item","U",$row["itemid"]),
- "<A HREF=\"items.php?register=change&itemid=".$row["itemid"]."#form\">".S_CHANGE."</A>",
+ "<A HREF=\"items.php?register=change&itemid=".$row["itemid"].url_param("hostid").url_param("groupid")."#form\">".S_CHANGE."</A>",
S_CHANGE);
if($row["error"] == "")