mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
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:
parent
95b7be7f05
commit
3c016111bd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user