When I create a question using textfields, the answers are evaluated as incorrect when they are correct. See attached screenshot.
Is this a bug? What can I do about this?
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | delimiter_added-2002636-10.patch | 866 bytes | mikran |
| #2 | 2002636_right_answer_evaluated_as_wrong_1.patch | 2.86 KB | sivaji_ganesh_jojodae |
| #1 | Test quiz | localhost - Google Chrome_010.jpeg | 138.87 KB | sivaji_ganesh_jojodae |
| cloze text field.png | 5 KB | nstillblue |
Comments
Comment #1
sivaji_ganesh_jojodae commentedAre you entering the answer with white space?
Noticed myself that only in such case evaluation is happening wrong.
Anyway this is to be fixed.
Comment #2
sivaji_ganesh_jojodae commentedAttaching the patch if anyone would need it for patching with drush or simiar.
Comment #3
sivaji_ganesh_jojodae commentedCommitted the above patch. That should resolve this.
Comment #5
nstillblue commentedThank you for your patch and commit, it's working now, but a new problem has arisen. I can no longer use < strong > tags in my questions, this breaks the cloze question...
Comment #6
sivaji_ganesh_jojodae commented@nstillblue, I will see if I can fix that. In the meantime can you please provide the question text to reproduce the issue?
Comment #7
nstillblue commentede.g. < strong > this < /strong > is a [test]
causes the cloze textfield not to show up when viewing the question.
The same problem occurs with < em > tags, but I can use < br > tags.
There is no problem for questions without tags:
e.g. this is a [test]
Comment #8
nstillblue commentedAny progress on this issue?
Comment #9
tostinni commentedThis patch also apply for D6 although it fails on some non useful parts, so it would be nice to apply it to D6 too.
Thanks.
Comment #10
mikran commentedHere is a patch that fixes the issue raised in comments #5 and #7. Basically any text containing '/' caused an error.