Permalink
Browse files

MDL-28639 question import should set timemodified and modified by.

Thanks to Jean-Michel Vedrine for the fix.
  • Loading branch information...
1 parent 9d228de commit cf93bcd37de7d263b77a2ba3ed839f855571ad42 @timhunt timhunt committed Aug 15, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 question/format.php
View
@@ -348,6 +348,8 @@ function importprocess($category) {
$question->createdby = $USER->id;
$question->timecreated = time();
+ $question->modifiedby = $USER->id;
+ $question->timemodified = time();
$question->id = $DB->insert_record('question', $question);
if (isset($question->questiontextfiles)) {

0 comments on commit cf93bcd

Please sign in to comment.