Permalink
Browse files

MDL-26704 gradebook: adding TODO comment to avoid forgetting

  • Loading branch information...
1 parent e1ad9ae commit 65150b26cdfca0bad7c52cc1c236372a4d165997 @stronk7 stronk7 committed May 17, 2011
Showing with 6 additions and 0 deletions.
  1. +1 −0 mod/data/lib.php
  2. +1 −0 mod/forum/lib.php
  3. +1 −0 mod/glossary/lib.php
  4. +1 −0 mod/lesson/lib.php
  5. +1 −0 mod/quiz/lib.php
  6. +1 −0 mod/scorm/lib.php
View
@@ -965,6 +965,7 @@ function data_user_outline($course, $user, $mod, $data) {
//datesubmitted == time created. dategraded == time modified or time overridden
//if grade was last modified by the user themselves use date graded. Otherwise use date submitted
+ //TODO: move this copied & pasted code somewhere in the grades API. See MDL-26704
if ($grade->usermodified == $user->id || empty($grade->datesubmitted)) {
$result->time = $grade->dategraded;
} else {
View
@@ -1134,6 +1134,7 @@ function forum_user_outline($course, $user, $mod, $forum) {
//datesubmitted == time created. dategraded == time modified or time overridden
//if grade was last modified by the user themselves use date graded. Otherwise use date submitted
+ //TODO: move this copied & pasted code somewhere in the grades API. See MDL-26704
if ($grade->usermodified == $user->id || empty($grade->datesubmitted)) {
$result->time = $grade->dategraded;
} else {
@@ -246,6 +246,7 @@ function glossary_user_outline($course, $user, $mod, $glossary) {
//datesubmitted == time created. dategraded == time modified or time overridden
//if grade was last modified by the user themselves use date graded. Otherwise use date submitted
+ //TODO: move this copied & pasted code somewhere in the grades API. See MDL-26704
if ($grade->usermodified == $user->id || empty($grade->datesubmitted)) {
$result->time = $grade->dategraded;
} else {
View
@@ -169,6 +169,7 @@ function lesson_user_outline($course, $user, $mod, $lesson) {
//datesubmitted == time created. dategraded == time modified or time overridden
//if grade was last modified by the user themselves use date graded. Otherwise use date submitted
+ //TODO: move this copied & pasted code somewhere in the grades API. See MDL-26704
if ($grade->usermodified == $user->id || empty($grade->datesubmitted)) {
$result->time = $grade->dategraded;
} else {
View
@@ -384,6 +384,7 @@ function quiz_user_outline($course, $user, $mod, $quiz) {
//datesubmitted == time created. dategraded == time modified or time overridden
//if grade was last modified by the user themselves use date graded. Otherwise use date submitted
+ //TODO: move this copied & pasted code somewhere in the grades API. See MDL-26704
if ($grade->usermodified == $user->id || empty($grade->datesubmitted)) {
$result->time = $grade->dategraded;
} else {
View
@@ -297,6 +297,7 @@ function scorm_user_outline($course, $user, $mod, $scorm) {
//datesubmitted == time created. dategraded == time modified or time overridden
//if grade was last modified by the user themselves use date graded. Otherwise use date submitted
+ //TODO: move this copied & pasted code somewhere in the grades API. See MDL-26704
if ($grade->usermodified == $user->id || empty($grade->datesubmitted)) {
$result->time = $grade->dategraded;
} else {

0 comments on commit 65150b2

Please sign in to comment.