From: jerome Date: Wed, 28 May 2008 02:07:06 +0000 (+0000) Subject: MDL-14765 Assignments email teachers on any submission (only if Alert teacher = Yes... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=91d8d9a0209920d0da8149bf58dc3b762856679a;p=moodle.git MDL-14765 Assignments email teachers on any submission (only if Alert teacher = Yes AND Send for making = No), merged from 19 --- diff --git a/mod/assignment/type/upload/assignment.class.php b/mod/assignment/type/upload/assignment.class.php index b0390e3629..551b5bb761 100644 --- a/mod/assignment/type/upload/assignment.class.php +++ b/mod/assignment/type/upload/assignment.class.php @@ -599,7 +599,9 @@ class assignment_upload extends assignment_base { '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'));