From e670e40bb0f2864e7ac72b348a44e66e9fcab095 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 15 Feb 2014 17:44:29 +0100 Subject: [PATCH 1/1] Fix problem with recognition of ANNULLIERUNG. Vote nullification is now recognized for every topic. Change template accordingly. Picked from upstream. Signed-off-by: Thomas Hochstein --- templates/ack-mail | 3 --- uvvote.pl | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/templates/ack-mail b/templates/ack-mail index 9b76f7f..26703b1 100644 --- a/templates/ack-mail +++ b/templates/ack-mail @@ -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 diff --git a/uvvote.pl b/uvvote.pl index 5cff375..c0c3712 100755 --- 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"; -- 2.20.1