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.
This commit is contained in:
Bradley M. Kuhn 2013-12-18 17:33:06 -05:00
parent f3fab42403
commit 35e87c2c65

View file

@ -38,7 +38,7 @@ if ($step == 1) {
}
if ($election_id == -1) {
$error .= "Please choose an election/referendum on this <a href=\"./\">list</a>.<br />\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.<br />\n";
$step = 0;
} else {
$election = elec_get_election ($handle, $election_id);