diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-03-04 16:12:12 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-03-04 16:12:12 +0000 |
| commit | 0d271b60e08f0e260cdc8664b7322c958e8bc40b (patch) | |
| tree | a77f2dc307795f99ca487807b1553ab5daaf67d4 /frontends/php | |
| parent | f681eb47ea19082ec25265b6b1622fe7f688c47c (diff) | |
| download | zabbix-0d271b60e08f0e260cdc8664b7322c958e8bc40b.tar.gz zabbix-0d271b60e08f0e260cdc8664b7322c958e8bc40b.tar.xz zabbix-0d271b60e08f0e260cdc8664b7322c958e8bc40b.zip | |
- fixed "Send message to" in actions.html (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@327 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
| -rw-r--r-- | frontends/php/actions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/actions.php b/frontends/php/actions.php index c0790ec4..c0ae6ee2 100644 --- a/frontends/php/actions.php +++ b/frontends/php/actions.php @@ -93,7 +93,7 @@ if(isset($actionid)) { - $sql="select a.actionid,a.triggerid,a.good,a.delay,a.subject,a.message from actions a where a.actionid=$actionid"; + $sql="select a.actionid,a.triggerid,a.good,a.delay,a.subject,a.message,a.userid from actions a where a.actionid=$actionid"; $result=DBselect($sql); $actionid=DBget_field($result,0,0); @@ -102,6 +102,7 @@ $delay=DBget_field($result,0,3); $subject=DBget_field($result,0,4); $message=DBget_field($result,0,5); + $uid=DBget_field($result,0,6); } else { @@ -142,7 +143,7 @@ $result=DBselect($sql); while($row=DBfetch($result)) { - if(isset($sto) && ($row["name"] == $sto)) + if(isset($uid) && ($row["userid"] == $uid)) { echo "<option value=\"".$row["userid"]."\" SELECTED>".$row["alias"]; } |
