Skip to content

Commit

Permalink
MDL-49642 mod_lesson: fix backup of user overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Michel Vedrine committed Apr 8, 2015
1 parent 247980b commit 31cb1b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/lesson/backup/moodle2/backup_lesson_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ protected function define_structure() {
$grade->set_source_table('lesson_grades', array('lessonid'=>backup::VAR_PARENTID));
$highscore->set_source_table('lesson_high_scores', array('lessonid' => backup::VAR_PARENTID));
$timer->set_source_table('lesson_timer', array('lessonid' => backup::VAR_PARENTID));
} else {
$overrideparams['userid'] = backup_helper::is_sqlparam(null); // Without userinfo, skip user overrides.
}

$override->set_source_table('lesson_overrides', $overrideparams);

// Annotate the user id's where required.
Expand Down

0 comments on commit 31cb1b0

Please sign in to comment.