Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-26546-workshop-restore' of git://github.com/mudrd8m…

…z/moodle
  • Loading branch information...
commit 915a20f5a58d10aefb1497857a769fa5d176ec73 2 parents 0797530 + 7c26c3f
@stronk7 stronk7 authored
View
2  mod/workshop/form/accumulative/backup/moodle2/restore_workshopform_accumulative_subplugin.class.php
@@ -112,7 +112,7 @@ public function process_workshopform_accumulative_dimension($data) {
$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);
}
/**
View
2  mod/workshop/form/comments/backup/moodle2/restore_workshopform_comments_subplugin.class.php
@@ -109,7 +109,7 @@ public function process_workshopform_comments_dimension($data) {
$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);
}
/**
View
2  mod/workshop/form/numerrors/backup/moodle2/restore_workshopform_numerrors_subplugin.class.php
@@ -124,7 +124,7 @@ public function process_workshopform_numerrors_dimension($data) {
$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);
}
/**
View
2  mod/workshop/form/rubric/backup/moodle2/restore_workshopform_rubric_subplugin.class.php
@@ -128,7 +128,7 @@ public function process_workshopform_rubric_dimension($data) {
$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);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.