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 1287d5e commit 336785367045035991b4ced8a658eb9229baa600 @timhunt timhunt committed Aug 15, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 question/format.php
View
@@ -324,6 +324,8 @@ function importprocess() {
$question->createdby = $USER->id;
$question->timecreated = time();
+ $question->modifiedby = $USER->id;
+ $question->timemodified = time();
if (!$question->id = insert_record("question", $question)) {
error( get_string('cannotinsert','quiz') );

0 comments on commit 3367853

Please sign in to comment.