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 '
'; echo ''; echo ''; @@ -1273,7 +1278,7 @@ } } - $userlink = '' . fullname($auser) . ''; + $userlink = '' . fullname($auser) . ''; $row = array($picture, $userlink, $grade, $comment, $studentmodified, $teachermodified, $status, $finalgrade); if ($uses_outcomes) { $row[] = $outcomes; @@ -1295,6 +1300,7 @@ } $table->print_html(); /// Print the whole table + echo '

'.get_string('emailnotification', 'assignment').'

'; if ($quickgrade){ echo '
'; @@ -1377,7 +1383,11 @@ $submission->submissioncomment = $feedback->submissioncomment; $submission->format = $feedback->format; $submission->teacher = $USER->id; - $submission->mailed = 0; // Make sure mail goes out (again, even) + if (optional_param('mailed', 1, PARAM_INTEGER)){ + $submission->mailed = 1; + } else { + $submission->mailed = 0; // Make sure mail goes out (again, even) + } $submission->timemarked = time(); unset($submission->data1); // Don't need to update this.