summaryrefslogtreecommitdiffstats
path: root/frontends/php/popup.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-04 10:30:02 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-04-04 10:30:02 +0000
commite155c74da360c3024cf27f9147ff93d2bcd10ec5 (patch)
tree7520a44add065b264cc2e33cb0585775552e615e /frontends/php/popup.php
parentaf70b333dae2f31ed9defee6819f7801ad2e24f0 (diff)
- fixed trigger dependencies for templated triggers (Eugene)
- mitor fixes git-svn-id: svn://svn.zabbix.com/trunk@3973 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup.php')
-rw-r--r--frontends/php/popup.php22
1 files changed, 7 insertions, 15 deletions
diff --git a/frontends/php/popup.php b/frontends/php/popup.php
index dd170319..8b45fd44 100644
--- a/frontends/php/popup.php
+++ b/frontends/php/popup.php
@@ -593,22 +593,14 @@ include_once "include/page_header.php";
if($row['dep_count'] > 0)
{
- $description = array($description);
+ $description = array(
+ $description,BR.BR.
+ "<strong>".S_DEPENDS_ON."</strong>".BR);
+
+ $deps = get_trigger_dependences_by_triggerid($row["triggerid"]);
- $result1=DBselect("select h.host,t.triggerid,t.description ".
- " from triggers t,trigger_depends d,functions f,items i,hosts h ".
- " where t.triggerid=d.triggerid_up and d.triggerid_down=".$row["triggerid"].
- " and ".DBid2nodeid("t.triggerid")."=".$nodeid.
- " and t.triggerid=f.triggerid and f.itemid=i.itemid and i.hostid=h.hostid");
- if($row1=DBfetch($result1))
- {
- array_push($description,BR.BR."<strong>".S_DEPENDS_ON."</strong>".SPACE.BR);
- do
- {
- array_push($description,expand_trigger_description_by_data($row1).BR);
- } while( $row1=DBfetch($result1));
- array_push($description,BR);
- }
+ foreach($deps as $val)
+ $description[] = expand_trigger_description($val).BR;
}
if($row["status"] == TRIGGER_STATUS_DISABLED)