From: C. Scott Ananian Date: Sat, 22 Jan 2011 08:42:57 +0000 (-0500) Subject: Fix errors when viewing results as election creator before election close. X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/f55c18a56705cbe340a1234d9083ad4e1055f0d4 Fix errors when viewing results as election creator before election close. --- diff --git a/app/views/common/_methodinfo_condorcet.rhtml b/app/views/common/_methodinfo_condorcet.rhtml index b941eea..1c2a382 100644 --- a/app/views/common/_methodinfo_condorcet.rhtml +++ b/app/views/common/_methodinfo_condorcet.rhtml @@ -20,7 +20,7 @@ another Condorcet system.

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 %> diff --git a/app/views/common/_methodinfo_ssd.rhtml b/app/views/common/_methodinfo_ssd.rhtml index 230191c..5c01987 100644 --- a/app/views/common/_methodinfo_ssd.rhtml +++ b/app/views/common/_methodinfo_ssd.rhtml @@ -32,7 +32,7 @@ Beatpath Winner, Path Voting, and Path Winner.

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 %>