[geeklog-devel] polls plugin

Joe Mucchiello joe at ThrowingDice.com
Tue Sep 25 00:54:35 EDT 2007


Same nightly CVS. The polls plugin is completely fubar'd. Just Edit 
the default poll and you find Q1 in the Q1 tab but all the answer are 
in the Q2 tab, and so on. Likewise if you create a poll with 3 
questions Q1, Q2, Q3 and create answers like A1Q1, A2Q1, A3Q1, A1Q2, 
A2Q2, A3Q2, A1Q3, A2Q3, A3Q3 you get this output:


1: Q2
  A1Q2
  A2Q2
  A3Q2
2: Q3
  A1Q3
  A2Q3
  A3Q3
3: Q1

[Vote]

Looking the HTML, it seems the questions, answer and displayed 
numbers don't share the same concept of array bases. One in using 
empty arrays name="questions[]", the other is 0-based 
name="answer[0][]" and of course the display is all 1 based.

----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com 




More information about the geeklog-devel mailing list