Fix errors when viewing results as election creator before election close.
authorC. Scott Ananian <cscott@cscott.net>
Sat, 22 Jan 2011 08:42:57 +0000 (03:42 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 23:13:06 +0000 (19:13 -0400)
app/views/common/_methodinfo_condorcet.rhtml
app/views/common/_methodinfo_ssd.rhtml

index b941eea258158ab9657b23423796b64d909fac39..1c2a382202b9f2e1a3b1e30e8aba4799f2c8e30f 100644 (file)
@@ -20,7 +20,7 @@ another Condorcet system.</p>
   tables. 
 
   <% if not @election.class == QuickVote %>
-    <%= link_to "Click here", { :action => 'pref_tables', :id => @voter.password }, :popup => [] %>
+    <%= link_to "Click here", { :action => 'pref_tables', :id => @election.id }, :popup => [] %>
     to view details.
   <% end %>
   
index 230191ca381c86581fd377c5729bd6cf032fe5ea..5c01987c562b4dbe49837d981e8e4cd209fb5098 100644 (file)
@@ -32,7 +32,7 @@ Beatpath Winner, Path Voting, and Path Winner.</p>
   tables.
 
   <% if not @election.class == QuickVote %>
-    <%= link_to "Click here", { :action => 'pref_tables', :id => @voter.password }, :popup => [] %>
+    <%= link_to "Click here", { :action => 'pref_tables', :id => @election.id }, :popup => [] %>
     to view details.
   <% end %>
 

Benjamin Mako Hill || Want to submit a patch?