-
Bug
-
Resolution: Fixed
-
Critical
-
4.0.1
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-75041-401 -
EDIT: Always, even for new questions created in version 4, both in private and shared set, wildcards need to be redefined when you edit a question. If you cancel editing the question because you don't know the variables, the database is corrupted and the question causes errors in PHP.
STEPS to reproduce error:
1.- Create or open a course in Moodle 4.x
2.- Go to More - Question bank
3.- Press in "Create a new question..."
4.- Choice: Calculated, create the question with wildcards.
5.- Save the question.
6.- Edit the question -> the values of wildcards don't exist
View debugging in https://tracker.moodle.org/browse/MDL-75041?focusedCommentId=932090&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-932090
Before I wrote:
When upgrading Moodle 3.11.6 to 4.0.x the calculated questions with shared wildcards work until I edit them.
I don't know if other types of questions will have the same problem but in those calculated with variables with a shared set of values, when I edit the question the shared variables do not appear and if I continue editing I have to recreate them, with the problem that I do not remember limits, decimals, etc.