diff --git a/question/backuplib.php b/question/backuplib.php index 00b2fc2542c..f7d035345f4 100644 --- a/question/backuplib.php +++ b/question/backuplib.php @@ -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)); } diff --git a/question/restorelib.php b/question/restorelib.php index d8c0c637866..ba1a9077000 100644 --- a/question/restorelib.php +++ b/question/restorelib.php @@ -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);