MDL-5482 - Backup and restore problems for match, random and truefalse question types.

All the credit goes to Paulo Matos who carefully worked out and tested this fix, and updated the patch several times over more than a year while I very slowly got around to reviewing it and checking it in.
This commit is contained in:
tjhunt
2008-05-07 12:31:58 +00:00
parent c14c54c22a
commit 6fa56c54f3
5 changed files with 83 additions and 13 deletions
+2
View File
@@ -299,6 +299,8 @@ class qformat_xml extends qformat_default {
$qo = $this->import_headers( $question );
// header parts particular to shortanswer
$qo->qtype = DESCRIPTION;
$qo->defaultgrade = 0;
$qo->length = 0;
return $qo;
}