MDL-13899 feedback itself is a type of grading - date graded is now affected by feedback too; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-03-18 22:54:56 +00:00
parent 375ba6e52b
commit cf12f6c5a9

View File

@ -272,7 +272,7 @@ class grade_grade extends grade_object {
*/
function get_dategraded() {
//TODO: HACK - create new fields in 2.0
if (is_null($this->finalgrade)) {
if (is_null($this->finalgrade) and is_null($this->feedback)) {
return null; // no grade == no date
} else if ($this->overridden) {
return $this->overridden;