Fix problem with recognition of ANNULLIERUNG.
authorThomas Hochstein <thh@inter.net>
Sat, 15 Feb 2014 16:44:29 +0000 (17:44 +0100)
committerThomas Hochstein <thh@inter.net>
Sat, 15 Feb 2014 16:44:29 +0000 (17:44 +0100)
Vote nullification is now recognized for
every topic.

Change template accordingly.

Picked from upstream.

Signed-off-by: Thomas Hochstein <thh@inter.net>
templates/ack-mail
uvvote.pl

index 9b76f7f..26703b1 100644 (file)
@@ -26,9 +26,6 @@ Diese Wahl ist oeffentlich, und die Adressen aller Waehlerinnen und
 Waehler werden am Ende bekanntgegeben. Wenn du deine Adresse & Stimme
 loeschen willst, kannst du erneut abstimmen und dabei 'ANNULLIERUNG'
 anstelle von 'JA' oder 'NEIN' angeben. \[Doppel-N, Doppel-L :-)\]
-Bei mehreren Abstimmungspunkten muss 'ANNULLIERUNG' bereits beim
-Abstimmungspunkt #1 angegeben werden, damit der erhoffte Erfolg
-eintritt. ;)
 
 [?personal|Da diese Abstimmung mit personalisierten Wahlscheinen durchgefuehrt
 wird, sind auch saemtliche Aenderungen nur mit Angabe der folgenden
index 5cff375..c0c3712 100755 (executable)
--- a/uvvote.pl
+++ b/uvvote.pl
@@ -273,7 +273,7 @@ sub process_vote {
     # this matches on a single appearance:
     if ($$body =~ /#$votenum\W*?\[(.+)\]/) {
       # one or more vote strings were found
-      $onevote = 1;
+      $onevote ||= 1; # set $onevote to 1 if it was 0
       my $votestring = $1;
       if ($votestring =~ /^\W*$config{ja_stimme}\W*$/i) {
         $vote = "J";
This page took 0.012703 seconds and 4 git commands to generate.