Don't lose node when editing security request
authorClinton Ebadi <clinton@unknownlamer.org>
Wed, 16 Jan 2013 07:01:06 +0000 (02:01 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Wed, 16 Jan 2013 07:01:06 +0000 (02:01 -0500)
Looks like a copy and paste problem

sec.mlt

diff --git a/sec.mlt b/sec.mlt
index 56e14c7..fd0c55e 100644 (file)
--- a/sec.mlt
+++ b/sec.mlt
@@ -185,7 +185,7 @@ elseif $"mod" <> "" then
 </select></td> </tr>
 <tr> <td>Node:</td> <td><select name="node">
 <% foreach node in Init.listNodes () do %>
-       <option value="<% #id node %>"<% if nodeNum = #node req then %> selected<% end %>><% Web.html (#name node) %> (<% Web.html (#descr node) %>)</option>
+       <option value="<% #id node %>"<% if #id node = #node req then %> selected<% end %>><% Web.html (#name node) %> (<% Web.html (#descr node) %>)</option>
 <% end %></select></td> </tr>
 <tr> <td>Request:</td> <td><input name="req" value="<% Web.html (#data req) %>"></td> </tr>
 <tr> <td>Message:</td> <td><textarea name="msg" rows="10" cols="80" wrap="soft"><% Web.html (#msg req) %></textarea></td> </tr>