Hide
In place of steps 1-7, you could use the file attache by Eloy, and shower him with thanks.
- Make a Moodle 2.4 install
- Create a course
- Add a quiz
- Add one each of a matching, multi-choice and short-answer question.
- Go into the database, and find the tables with names like (question|qtype)_(match|numerical|shortanswer)(_options)?
- In each one, duplicate the row you find there, so only the id column is different.
- Backup the course.
- For each branch where you need to test this fix (2.7, 2.8, master), restore that backup.
- Verify the restore completes with no errors.
- Go to the question bank of the restored course, and click on the edit icon for each question to verify that the options for each question have not been lost during the backup/restore.
# Have a well-earned beer, or other beverage of your choice.
To test the random short-answer match part of the change, you would need to install 2.0 or earlier, and I am guessing you don't want to do that. It is probably OK to just review the code and see that the change is the same as in the other qtypes.
Show
In place of steps 1-7, you could use the file attache by Eloy, and shower him with thanks.
Make a Moodle 2.4 install
Create a course
Add a quiz
Add one each of a matching, multi-choice and short-answer question.
Go into the database, and find the tables with names like (question|qtype)_(match|numerical|shortanswer)(_options)?
In each one, duplicate the row you find there, so only the id column is different.
Backup the course.
For each branch where you need to test this fix (2.7, 2.8, master), restore that backup.
Verify the restore completes with no errors.
Go to the question bank of the restored course, and click on the edit icon for each question to verify that the options for each question have not been lost during the backup/restore.
# Have a well-earned beer, or other beverage of your choice.
To test the random short-answer match part of the change, you would need to install 2.0 or earlier, and I am guessing you don't want to do that. It is probably OK to just review the code and see that the change is the same as in the other qtypes.