Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.3
-
Fix Version/s: STABLE backlog
-
Component/s: Questions
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
The field is obsolete, and quite bothersome when restoring, but we need to make sure we not breaking anything.
Changes to 2.0 only probably OK, thought maybe in 1.9 we can drop filling this field without actual deleting it from db.
To find all possible uses of "answers" field I launch search on entire moodle codebase with regex: (?<!options)
>answers (options>answer filled now from question_answers table) and see all files with occurences. There was several results of interest:....shortanswer\questiontype.php - obvious, only filling (save_question_options), backuping and restoring it.
.....quiz\restorelibpre15.php - restoring it
And there was two files, where I really can't understand, have they anything with question_shortanswer table or not: format.php for hotpot and webct formats.
There was also some occurences in mysql.php and postgres7.php, but they are related with quite old versions, so there is probably safe to ignore them.
Did you consider such testing enough?
>answers (options>answer filled now from question_answers table) and see all files with occurences. There was several results of interest: ....shortanswer\questiontype.php - obvious, only filling (save_question_options), backuping and restoring it. .....quiz\restorelibpre15.php - restoring it And there was two files, where I really can't understand, have they anything with question_shortanswer table or not: format.php for hotpot and webct formats. There was also some occurences in mysql.php and postgres7.php, but they are related with quite old versions, so there is probably safe to ignore them. Did you consider such testing enough?