MDL-53985 assign: Do not remove annotations

When an assignment submission is reverted to a draft, the timemodified on
the submission should not be modified. Changing the timemodified causes the
editpdf code to assume the pdf is stale, and forces all annotations to be removed.
This commit is contained in:
Damyon Wiese 2017-12-15 11:50:43 +08:00
parent 95b7be7f05
commit 3c016111bd

View File

@ -7633,7 +7633,7 @@ class assign {
return false;
}
$submission->status = ASSIGN_SUBMISSION_STATUS_DRAFT;
$this->update_submission($submission, $userid, true, $this->get_instance()->teamsubmission);
$this->update_submission($submission, $userid, false, $this->get_instance()->teamsubmission);
// Give each submission plugin a chance to process the reverting to draft.
$plugins = $this->get_submission_plugins();