Permalink
Browse files

MDL-40003 mod_assign: Fixed submission comments not being restored

  • Loading branch information...
1 parent cf0e970 commit ae3cca45617553bc876573a872448dce8f38379e @sam-moodle sam-moodle committed with FMCorz Jun 3, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 mod/assign/backup/moodle2/restore_assign_activity_task.class.php
View
18 mod/assign/backup/moodle2/restore_assign_activity_task.class.php
@@ -120,4 +120,22 @@ static public function define_restore_log_rules_for_course() {
return $rules;
}
+ /**
+ * Given a comment area, return the itemname that contains the itemid mappings.
+ *
+ * @param string $commentarea
+ * @return string
+ */
+ public function get_comment_mapping_itemname($commentarea) {
+ switch ($commentarea) {
+ case 'submission_comments':
+ $itemname = 'submission';
+ break;
+ default:
+ $itemname = parent::get_comment_mapping_itemname($commentarea);
+ break;
+ }
+
+ return $itemname;
+ }
}

0 comments on commit ae3cca4

Please sign in to comment.