Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
@@ -1802,7 +1802,7 @@ function description_is_hidden() {
1802 1802 function user_outline($grade) {
1803 1803 $result = new object();
1804 1804 $result->info = get_string('grade').': '.$grade->str_long_grade;
1805   - $result->time = $grade->dategraded;
  1805 + $result->time = $grade->datesubmitted;
1806 1806 return $result;
1807 1807 }
1808 1808
2  mod/data/lib.php
@@ -729,7 +729,7 @@ function data_user_outline($course, $user, $mod, $data) {
729 729 } else if ($grade) {
730 730 $result = new object();
731 731 $result->info = get_string('grade') . ': ' . $grade->str_long_grade;
732   - $result->time = $grade->dategraded;
  732 + $result->time = $grade->datesubmitted;
733 733 return $result;
734 734 }
735 735 return NULL;
2  mod/forum/lib.php
@@ -976,7 +976,7 @@ function forum_user_outline($course, $user, $mod, $forum) {
976 976 } else if ($grade) {
977 977 $result = new object();
978 978 $result->info = get_string('grade') . ': ' . $grade->str_long_grade;
979   - $result->time = $grade->dategraded;
  979 + $result->time = $grade->datesubmitted;
980 980 return $result;
981 981 }
982 982 return NULL;
3  mod/glossary/lib.php
@@ -162,6 +162,7 @@ function glossary_delete_instance($id) {
162 162
163 163 function glossary_user_outline($course, $user, $mod, $glossary) {
164 164 global $CFG;
  165 + var_dump('glossary_user_outline');
165 166 /// Return a small object with summary information about what a
166 167 /// user has done with a given particular instance of this module
167 168 /// Used for user activity reports.
@@ -189,7 +190,7 @@ function glossary_user_outline($course, $user, $mod, $glossary) {
189 190 } else if ($grade) {
190 191 $result = new object();
191 192 $result->info = get_string('grade') . ': ' . $grade->str_long_grade;
192   - $result->time = $grade->dategraded;
  193 + $result->time = $grade->datesubmitted;
193 194 return $result;
194 195 }
195 196
2  mod/lesson/lib.php
@@ -155,7 +155,7 @@ function lesson_user_outline($course, $user, $mod, $lesson) {
155 155 } else {
156 156 $grade = reset($grades->items[0]->grades);
157 157 $return->info = get_string("grade") . ': ' . $grade->str_long_grade;
158   - $return->time = $grade->dategraded;
  158 + $return->time = $grade->datesubmitted;
159 159 }
160 160 return $return;
161 161 }
2  mod/quiz/lib.php
@@ -209,7 +209,7 @@ function quiz_user_outline($course, $user, $mod, $quiz) {
209 209
210 210 $result = new stdClass;
211 211 $result->info = get_string('grade') . ': ' . $grade->str_long_grade;
212   - $result->time = $grade->dategraded;
  212 + $result->time = $grade->datesubmitted;
213 213 return $result;
214 214 }
215 215
2  mod/scorm/lib.php
@@ -225,7 +225,7 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
225 225 $grade = reset($grades->items[0]->grades);
226 226 $result = new object();
227 227 $result->info = get_string('grade') . ': '. $grade->str_long_grade;
228   - $result->time = $grade->dategraded;
  228 + $result->time = $grade->datesubmitted;
229 229 return $result;
230 230 }
231 231 return null;

0 comments on commit e9cd73e

Please sign in to comment.
Something went wrong with that request. Please try again.