Hello, forum,
I want warn all users planning to upgrade to Moodle 2.1, specially those making intensive use of quizzes, against a bug I'm facing triyng to manage cloze questions.
In short, moodle code doesn't parse correctly the information regarding sub-questions, so the cloze question cannot be written into the database.
To test it, create a cloze question in Moodle 2.1 with the following HTML content:
<p>Sub-question 1: {2:NUMERICAL:=5E-3:1E-4}</p>
<p>Sub-question 2: {1:MULTICHOICE:%100%Yes~%0%No}</p>
Then try to save it: you'll get an "Error writing to the database" message. If you have debugging turned on you will notice that moodle is trying to write erroneous information into the database (basically data to be written apperars to be shifted from their correct positions, so textual data ends up into a numerical field raising an exception).
I've reported this bug (see MDL-28241) but at this time nobody has commented on it yet, so I report the bug here to see if anybody is experiencing the same problem, and to attract attention over it.
Until resolved you'll be unable to manipulate cloze questions: you cannot create, edit, or export/import them, so is a big issue in my opinion.