From 94a74f549ae1fe7b370cb3a58b0a66e0daaeb30d Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 17 May 2011 11:58:22 +0200 Subject: [PATCH] MDL-26704 gradebook: adding TODO comment to avoid forgetting --- mod/data/lib.php | 1 + mod/forum/lib.php | 1 + mod/glossary/lib.php | 1 + mod/lesson/lib.php | 1 + mod/quiz/lib.php | 1 + mod/scorm/lib.php | 1 + 6 files changed, 6 insertions(+) diff --git a/mod/data/lib.php b/mod/data/lib.php index a0df5fb0c85..4ba69c40a9e 100644 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -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 { diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 88d214a474a..ca6bb13529a 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -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 { diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index f92a742cc94..8bb93c99eb9 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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 { diff --git a/mod/lesson/lib.php b/mod/lesson/lib.php index 74954f1ec49..4c866b7b0ef 100644 --- a/mod/lesson/lib.php +++ b/mod/lesson/lib.php @@ -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 { diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index f48d1aba880..be6b2b64971 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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 { diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 1d42ed6934c..80b8c7ddd39 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -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 {