Index: lib.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/assignment/lib.php,v retrieving revision 1.277.2.27 diff -u -r1.277.2.27 lib.php --- lib.php 14 Feb 2008 07:25:11 -0000 1.277.2.27 +++ lib.php 20 Feb 2008 10:48:28 -0000 @@ -564,7 +564,11 @@ } $submission->teacher = $USER->id; - $submission->mailed = $updatedb?0:$submission->mailed;//only change if it's an update + if (optional_param('mailed', 1, PARAM_INTEGER)){ + $submission->mailed = 1; + } else { + $submission->mailed = $updatedb?0:$submission->mailed;//only change if it's an update + } $submission->timemarked = time(); //if it is not an update, we don't change the last modified time etc. @@ -922,6 +926,7 @@ } ///Print Buttons in Single View + echo '
'.get_string('emailnotification','assignment').'
'; echo '