-
Bug
-
Resolution: Fixed
-
Critical
-
2.1, 2.2
-
MySQL
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_21_STABLE
-
To reproduce:
Create a new cloze question with this simple HTML code:
<p>Sub-question 1:
{2:NUMERICAL:=5E-3:1E-4}</p>
<p>Sub-question 2:
</p>
Then save it. This leads to the error shown in the image attached. As you can see, Moodle code tries to store a character 'Y' in the 'answerformat' field.
This character is obviously the first one of the word 'Yes' in the multichoice sub-question (if you change the word
'Yes' to 'Si' then Moodle tries to store an 'S'), so it seems clearly a problem related to parsing code.
Note that this bug may pass unnoticed if you upgrade from 1.9 or 2.0 to 2.1 because upgrade works fine. Only when you edit/import the question or add new ones (i.e., when parsing HTML code) this bug appears.
- caused a regression
-
MDL-29062 WSD (White screen of Death), while editing "Embedded Question"
-
- Closed
-
- has been marked as being related by
-
MDL-29064 "Question text" field in "Embedded answer (cloze)" question should be required text
-
- Closed
-
- is duplicated by
-
MDL-28688 Cloze/multianswer question does not recognize MULTICHOICE sub-question type
-
- Closed
-
-
MDL-28367 error when creating MC cloze question
-
- Closed
-
-
MDL-28415 Quiz MULTICHOICE database insert error
-
- Closed
-
-
MDL-28480 Unable to use embedded answers (cloze) question type for quiz activity
-
- Closed
-