Hi,
in the file restore_assignfeedback_comments_subplugin.class.php
in the file restore_assignfeedback_comments_subplugin.class.php
public function process_assignfeedback_comments_grade($data) {
global $DB;
$data = (object)$data;
$data->assignment = $this->get_new_parentid('assign');
$oldgradeid = $data->grade;
// The mapping is set in the restore for the core assign activity
// when a grade node is processed.
$data->grade = $this->get_mappingid('grade', $data->grade);
$DB->insert_record('assignfeedback_comments', $data);
}
global $DB;
$data = (object)$data;
$data->assignment = $this->get_new_parentid('assign');
$oldgradeid = $data->grade;
// The mapping is set in the restore for the core assign activity
// when a grade node is processed.
$data->grade = $this->get_mappingid('grade', $data->grade);
$DB->insert_record('assignfeedback_comments', $data);
}
You can probably do it also for grade item.
Hope it's help.
Dominique.