# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/mod/assignment/type/upload/assignment.class.php --- moodle/mod/assignment/type/upload/assignment.class.php Base (1.32.2.13) +++ moodle/mod/assignment/type/upload/assignment.class.php Locally Modified (Based On 1.32.2.13) @@ -599,7 +599,9 @@ 'view.php?a='.$this->assignment->id, $this->assignment->id, $this->cm->id); $submission = $this->get_submission($USER->id); $this->update_grade($submission); - + if (!$this->drafts_tracked()) { + $this->email_teachers($submission); + } } else { $new_filename = $um->get_new_filename(); $this->view_header(get_string('upload'));