MDL-36650 don't change question timecreated or timemodified on restore.

This commit is contained in:
Tim Hunt 2012-11-15 15:00:39 +00:00
parent 47dfbd9eb3
commit c23513dbe4

View File

@ -3072,9 +3072,6 @@ class restore_create_categories_and_questions extends restore_structure_step {
$data->penalty = 1;
}
$data->timecreated = $this->apply_date_offset($data->timecreated);
$data->timemodified = $this->apply_date_offset($data->timemodified);
$userid = $this->get_mappingid('user', $data->createdby);
$data->createdby = $userid ? $userid : $this->task->get_userid();