Permalink
Browse files

fixed grading bug#1517 and some other typos; merged from MOODLE_15_ST…

…ABLE
  • Loading branch information...
1 parent 177e83d commit 3262ee106a65253d99afe2cd30682143d5a6ef37 skodak committed Jul 9, 2005
Showing with 5 additions and 8 deletions.
  1. +5 −2 mod/assignment/lib.php
  2. +0 −6 mod/assignment/mod.html
View
@@ -505,7 +505,7 @@ function update_main_listing($submission) {
echo 'opener.document.getElementById("button'.$submission->userid.'").value="'.get_string('update').' ...";';
}
echo "\n-->\n</script>";
- fflush();
+ flush();
}
/*
@@ -1304,11 +1304,14 @@ function assignment_grades($assignmentid) {
if (!$assignment = get_record("assignment", "id", $assignmentid)) {
return NULL;
}
+ if ($assignment->grade == 0) { // No grading
+ return NULL;
+ }
$grades = get_records_menu("assignment_submissions", "assignment",
$assignment->id, "", "userid,grade");
- if ($assignment->grade >= 0) {
+ if ($assignment->grade > 0) {
$return->grades = $grades;
$return->maxgrade = $assignment->grade;
View
@@ -25,15 +25,9 @@
if (!isset($form->preventlate)) {
$form->preventlate = 0;
}
- if (!isset($form->grade)) {
- $form->grade = 100;
- }
if (empty($form->maxbytes)) {
$form->maxbytes = $CFG->assignment_maxbytes;
}
- if (empty($form->timedue)) {
- $form->timedue = "";
- }
?>
<script type="text/javascript" language="javascript">

0 comments on commit 3262ee1

Please sign in to comment.