Nicholas found this while we were going over the combined patch. From what I remember, it seemed a bit inconsistent, because he got a 0 to work at some point. An example of the question he was putting in is:
"What is 100 - 100?"
Answer: 0
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | multichoice_answer_patch_0.txt | 743 bytes | kscheirer |
| #2 | multichoice_0_answer.patch | 3.48 KB | gilcot |
Comments
Comment #1
nicholasthompsonAs I recall, this could be to do with the submission of the answers when making a question. One of the tests uses the empty() function in PHP. Maybe a better test could be:
if(trim($answer) != '')Just an idea...
Comment #2
gilcot commentedNicolas, that's right.
here is the patch that correct it. included also some code formating according to Drupal standart.
Comment #3
add1sun commentedThis should be addressed before a stable release so marking this for 5.x-1.x
Comment #4
kscheirerthis should take care of it
Comment #5
add1sun commentedschwingo. rtbc
Comment #6
add1sun commentedin 5 and HEAD
Comment #7
(not verified) commented