Browse files

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

… date submitted instead of date graded
  • Loading branch information...
1 parent 9251e27 commit e9cd73e2f383c3b29fb9bb4d0c110075c716a725 @andyjdavis andyjdavis committed May 6, 2011
Showing with 8 additions and 7 deletions.
  1. +1 −1 mod/assignment/lib.php
  2. +1 −1 mod/data/lib.php
  3. +1 −1 mod/forum/lib.php
  4. +2 −1 mod/glossary/lib.php
  5. +1 −1 mod/lesson/lib.php
  6. +1 −1 mod/quiz/lib.php
  7. +1 −1 mod/scorm/lib.php
View
2 mod/assignment/lib.php
@@ -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;
}
View
2 mod/data/lib.php
@@ -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;
View
2 mod/forum/lib.php
@@ -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;
View
3 mod/glossary/lib.php
@@ -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;
}
View
2 mod/lesson/lib.php
@@ -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;
}
View
2 mod/quiz/lib.php
@@ -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;
}
View
2 mod/scorm/lib.php
@@ -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;

0 comments on commit e9cd73e

Please sign in to comment.