From 35e87c2c652102496d9f1ff2adb9fa8e65db726e Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 18 Dec 2013 17:33:06 -0500 Subject: [PATCH] Don't refer back to a list; just tell the user they must have election_id. This is probably not the right long-term solution. Ideally, I think it'd be useful if elections could be marked private or public, and elections that are public would be listed automatically, and private ones wouldn't appear. It seems there are some remnants in the code that make it look like someone was going to make a step 0, which would list the elections from the database, but that was never done. So, I've hard-coded what I wanted here, in hopes someone else comes along and does it up right. --- vote/vote.wml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vote/vote.wml b/vote/vote.wml index 89ceaf5..f21ccca 100644 --- a/vote/vote.wml +++ b/vote/vote.wml @@ -38,7 +38,7 @@ if ($step == 1) { } if ($election_id == -1) { - $error .= "Please choose an election/referendum on this list.
\n"; + $error .= "A menu of elections is not available. A URL that includes the election id is required. This should have been given to you when you were asked to vote.
\n"; $step = 0; } else { $election = elec_get_election ($handle, $election_id);