Skip to content

Commit

Permalink
MDL-40003 mod_assign: Fixed submission comments not being restored
Browse files Browse the repository at this point in the history
  • Loading branch information
samchaffee authored and FMCorz committed Dec 9, 2013
1 parent 98f4a31 commit 780a21f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mod/assign/backup/moodle2/restore_assign_activity_task.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -117,4 +117,22 @@ static public function define_restore_log_rules_for_course() {
return $rules; 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 780a21f

Please sign in to comment.