-
Bug
-
Resolution: Fixed
-
Minor
-
2.8.2
-
MOODLE_28_STABLE
-
MOODLE_29_STABLE
-
It is possible to set rich HTML such as images as the correct answer for both the numeric and short answer questions even though it is not possible for the student to enter that value as an answer.
To reproduce:
1. In a lesson add a new numeric question page.
2. Name the page Numeric Question 1
3. Set the page contents to "This is a numeric question"
4. Set answer 1 to "ABCD1234"
5. Set the answer format to "HTML Format"
6. Save the page
7. click on the edit button and edit "Numeric Question 1"
8. You will see an HTML editor now for the Answer 1 "Answer" field.
9. Try to add an image, you will be prompted to select a URL. The filemanager will not be available.
10. Add an image from a URL
11. Save the page