Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-26704 gradebook: switched the user outline activity report to use…

… date submitted instead of date graded
  • Loading branch information...
commit e9cd73e2f383c3b29fb9bb4d0c110075c716a725 1 parent 9251e27
Andrew Davis andyjdavis authored
2  mod/assignment/lib.php
View
@@ -1802,7 +1802,7 @@ function description_is_hidden() {
function user_outline($grade) {
$result = new object();
$result->info = get_string('grade').': '.$grade->str_long_grade;
- $result->time = $grade->dategraded;
+ $result->time = $grade->datesubmitted;
return $result;
}
2  mod/data/lib.php
View
@@ -729,7 +729,7 @@ function data_user_outline($course, $user, $mod, $data) {
} else if ($grade) {
$result = new object();
$result->info = get_string('grade') . ': ' . $grade->str_long_grade;
- $result->time = $grade->dategraded;
+ $result->time = $grade->datesubmitted;
return $result;
}
return NULL;
2  mod/forum/lib.php
View
@@ -976,7 +976,7 @@ function forum_user_outline($course, $user, $mod, $forum) {
} else if ($grade) {
$result = new object();
$result->info = get_string('grade') . ': ' . $grade->str_long_grade;
- $result->time = $grade->dategraded;
+ $result->time = $grade->datesubmitted;
return $result;
}
return NULL;
3  mod/glossary/lib.php
View
@@ -162,6 +162,7 @@ function glossary_delete_instance($id) {
function glossary_user_outline($course, $user, $mod, $glossary) {
global $CFG;
+ var_dump('glossary_user_outline');
/// Return a small object with summary information about what a
/// user has done with a given particular instance of this module
/// Used for user activity reports.
@@ -189,7 +190,7 @@ function glossary_user_outline($course, $user, $mod, $glossary) {
} else if ($grade) {
$result = new object();
$result->info = get_string('grade') . ': ' . $grade->str_long_grade;
- $result->time = $grade->dategraded;
+ $result->time = $grade->datesubmitted;
return $result;
}
2  mod/lesson/lib.php
View
@@ -155,7 +155,7 @@ function lesson_user_outline($course, $user, $mod, $lesson) {
} else {
$grade = reset($grades->items[0]->grades);
$return->info = get_string("grade") . ': ' . $grade->str_long_grade;
- $return->time = $grade->dategraded;
+ $return->time = $grade->datesubmitted;
}
return $return;
}
2  mod/quiz/lib.php
View
@@ -209,7 +209,7 @@ function quiz_user_outline($course, $user, $mod, $quiz) {
$result = new stdClass;
$result->info = get_string('grade') . ': ' . $grade->str_long_grade;
- $result->time = $grade->dategraded;
+ $result->time = $grade->datesubmitted;
return $result;
}
2  mod/scorm/lib.php
View
@@ -225,7 +225,7 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
$grade = reset($grades->items[0]->grades);
$result = new object();
$result->info = get_string('grade') . ': '. $grade->str_long_grade;
- $result->time = $grade->dategraded;
+ $result->time = $grade->datesubmitted;
return $result;
}
return null;
Please sign in to comment.
Something went wrong with that request. Please try again.