Ajout : multiple= parameter.
[ikiwiki/poll.git] / poll.pm
diff --git a/poll.pm b/poll.pm
index 449e438..87c2867 100644 (file)
--- a/poll.pm
+++ b/poll.pm
@@ -266,7 +266,8 @@ sub sessioncgi ($$) {
                                        $params.=" 1 \"$choice\""
                                                if length $choice;
                                 }
-                               if (defined $oldchoice and not ($oldchoice eq $choice)) {
+                               if (defined $oldchoice and not ($oldchoice eq $choice)
+                                and not ($params=~/multiple=(\w+)/ & &IkiWiki::yesno($1))) {
                                        $params=~s/(^|\s+)(\d+)(="([^"]*)")?(\s+)"?\Q$oldchoice\E"?(\s+|$)/$1.$vote->('del', $2, $4)."$5\"$oldchoice\"".$6/es;
                                 }
                         }