Skip to content

Commit

Permalink
MDL-41772 - mod_data: Fixed database_module comments not being restored.
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Sep 13, 2013
1 parent 444433b commit 09c5de5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mod/data/backup/moodle2/restore_data_activity_task.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -120,4 +120,19 @@ static public function define_restore_log_rules_for_course() {


return $rules; return $rules;
} }

/**
* Given a commment area, return the itemname that contains the itemid mappings.
*
* @param string $commentarea Comment area name e.g. database_entry.
* @return string name of the mapping used to determine the itemid.
*/
public function get_comment_mapping_itemname($commentarea) {
if ($commentarea == 'database_entry') {
$itemname = 'data_record';
} else {
$itemname = parent::get_comment_mapping_itemname($commentarea);
}
return $itemname;
}
} }

0 comments on commit 09c5de5

Please sign in to comment.