fix for MDL-8491, feed back for essay questions not backed up

This commit is contained in:
moodler
2007-03-02 04:51:31 +00:00
parent 731f877fdb
commit c5c47d0c43
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -348,6 +348,7 @@
fwrite ($bf,full_tag("NEWEST",$level + 2,false,$newest_state->newest));
fwrite ($bf,full_tag("NEWGRADED",$level + 2,false,$newest_state->newgraded));
fwrite ($bf,full_tag("SUMPENALTY",$level + 2,false,$newest_state->sumpenalty));
fwrite ($bf,full_tag("COMMENT",$level + 2,false,$newest_state->comment));
//End newest_state
$status = fwrite ($bf,end_tag("NEWEST_STATE",$level + 1,true));
}
+1
View File
@@ -687,6 +687,7 @@
$session->newest = backup_todb($res_info['#']['NEWEST']['0']['#']);
$session->newgraded = backup_todb($res_info['#']['NEWGRADED']['0']['#']);
$session->sumpenalty = backup_todb($res_info['#']['SUMPENALTY']['0']['#']);
$session->comment = backup_todb($res_info['#']['COMMENT']['0']['#']);
//We have to recode the question field
$question = backup_getid($restore->backup_unique_code,"question",$session->questionid);