Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Thanks to Jean-Michel Vedrine for the fix.
  • Loading branch information...
commit cf93bcd37de7d263b77a2ba3ed839f855571ad42 1 parent 9d228de
@timhunt timhunt authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  question/format.php
View
2  question/format.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.