[Aimmath-commit] moodle/mod/math_assignment updatepapergrades.php,1.4,1.5
Brought to you by:
gustav_delius,
npstrick
|
From: <gus...@us...> - 2004-01-11 13:18:22
|
Update of /cvsroot/aimmath/moodle/mod/math_assignment
In directory sc8-pr-cvs1:/tmp/cvs-serv2606
Modified Files:
updatepapergrades.php
Log Message:
When a grade entered by hand is larger than the maximum it is nevertheless entered into the table and only a warning is generated.
After saving grades one is returned to grades table.
Index: updatepapergrades.php
===================================================================
RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/updatepapergrades.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** updatepapergrades.php 10 Nov 2003 12:15:30 -0000 1.4
--- updatepapergrades.php 11 Jan 2004 13:18:17 -0000 1.5
***************
*** 39,43 ****
}
if ($grade > $math_assignment->papergrade) {
- $grade = $math_assignment->papergrade;
$warning = 2;
}
--- 39,42 ----
***************
*** 77,80 ****
$delay = 15;
}
! redirect("$CFG->wwwroot/mod/math_assignment/view.php?q=$math_assignment->id", $strnotice, $delay);
?>
--- 76,79 ----
$delay = 15;
}
! redirect("$CFG->wwwroot/mod/math_assignment/view.php?q=$math_assignment->id&showgrades=true", $strnotice, $delay);
?>
|