Skip to content
Permalink
Browse files

MDL-35411 assign Include plugin (submission/feedback) info, even when…

… there is no user data.

assign_plugin_config data was only included in backups/imports if user data was included in
the backup. This patch moves it out with the standard structure of the assign backup.
  • Loading branch information...
merrill-oakland committed Sep 13, 2012
1 parent c8ac480 commit 7aa1a4fab22d43ffd96de3085dff227485b724dd
Showing with 3 additions and 5 deletions.
  1. +3 −5 mod/assign/backup/moodle2/backup_assign_stepslib.php
@@ -103,24 +103,22 @@ protected function define_structure() {
$pluginconfigs->add_child($pluginconfig);
// Define sources
// Define sources.
$assign->set_source_table('assign', array('id' => backup::VAR_ACTIVITYID));
$pluginconfig->set_source_table('assign_plugin_config', array('assignment' => backup::VAR_PARENTID));
if ($userinfo) {
$submission->set_source_table('assign_submission',
array('assignment' => backup::VAR_PARENTID));
$grade->set_source_table('assign_grades',
array('assignment' => backup::VAR_PARENTID));
$pluginconfig->set_source_table('assign_plugin_config',
array('assignment' => backup::VAR_PARENTID));
// support 2 types of subplugins
// Support 2 types of subplugins.
$this->add_subplugin_structure('assignsubmission', $submission, true);
$this->add_subplugin_structure('assignfeedback', $grade, true);
}
// Define id annotations
$submission->annotate_ids('user', 'userid');
$submission->annotate_ids('group', 'groupid');

0 comments on commit 7aa1a4f

Please sign in to comment.
You can’t perform that action at this time.