From f55c18a56705cbe340a1234d9083ad4e1055f0d4 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Sat, 22 Jan 2011 03:42:57 -0500 Subject: [PATCH 1/1] Fix errors when viewing results as election creator before election close. --- app/views/common/_methodinfo_condorcet.rhtml | 2 +- app/views/common/_methodinfo_ssd.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %> -- 2.39.5