MDL-26546 Workshop: fixed incorrect mapping name in the restore of assessment forms

There was a regression of 8fa86f and ac0f8f where I changed the mapping
names but did not use the new names in add_related_files() call.

All credit goes to Eloy Lafuente for spotting the problem and giving me
a hint on how to fix it.
This commit is contained in:
David Mudrak
2011-02-22 00:54:13 +01:00
parent eabbb121bb
commit 7c26c3f875
4 changed files with 4 additions and 4 deletions
@@ -112,7 +112,7 @@ class restore_workshopform_accumulative_subplugin extends restore_subplugin {
$this->set_mapping($this->get_namefor('dimension'), $oldid, $newitemid, true);
// Process files for this workshopform_accumulative->id only
$this->add_related_files('workshopform_accumulative', 'description', 'workshopform_accumulative', null, $oldid);
$this->add_related_files('workshopform_accumulative', 'description', $this->get_namefor('dimension'), null, $oldid);
}
/**
@@ -109,7 +109,7 @@ class restore_workshopform_comments_subplugin extends restore_subplugin {
$this->set_mapping($this->get_namefor('dimension'), $oldid, $newitemid, true);
// Process files for this workshopform_comments->id only
$this->add_related_files('workshopform_comments', 'description', 'workshopform_comments', null, $oldid);
$this->add_related_files('workshopform_comments', 'description', $this->get_namefor('dimension'), null, $oldid);
}
/**
@@ -124,7 +124,7 @@ class restore_workshopform_numerrors_subplugin extends restore_subplugin {
$this->set_mapping($this->get_namefor('dimension'), $oldid, $newitemid, true);
// Process files for this workshopform_numerrors->id only
$this->add_related_files('workshopform_numerrors', 'description', 'workshopform_numerrors', null, $oldid);
$this->add_related_files('workshopform_numerrors', 'description', $this->get_namefor('dimension'), null, $oldid);
}
/**
@@ -128,7 +128,7 @@ class restore_workshopform_rubric_subplugin extends restore_subplugin {
$this->set_mapping($this->get_namefor('dimension'), $oldid, $newitemid, true);
// Process files for this workshopform_rubric->id only
$this->add_related_files('workshopform_rubric', 'description', 'workshopform_rubric', null, $oldid);
$this->add_related_files('workshopform_rubric', 'description', $this->get_namefor('dimension'), null, $oldid);
}
/**