mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
adding backward compatibility for question restores
This commit is contained in:
parent
1fdce070c4
commit
a28ee0a933
1 changed files with 6 additions and 1 deletions
|
@ -700,6 +700,11 @@
|
|||
$session->newgraded = backup_todb($res_info['#']['NEWGRADED']['0']['#']);
|
||||
$session->sumpenalty = backup_todb($res_info['#']['SUMPENALTY']['0']['#']);
|
||||
|
||||
if ($res_info['#']['MANUALCOMMENT']['0']['#']) {
|
||||
$session->manualcomment = backup_todb($res_info['#']['MANUALCOMMENT']['0']['#']);
|
||||
} else { // pre 1.7 backups
|
||||
$session->manualcomment = backup_todb($res_info['#']['COMMENT']['0']['#']);
|
||||
}
|
||||
//We have to recode the question field
|
||||
$question = backup_getid($restore->backup_unique_code,"question",$session->questionid);
|
||||
if ($question) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue