diff --git a/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html b/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html index ea03450af..84e54a560 100644 --- a/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html +++ b/src/addon/mod/assign/components/submission/addon-mod-assign-submission.html @@ -215,6 +215,12 @@

{{ feedback.gradeddate * 1000 | coreFormatDate }}

+ + +

{{ 'addon.mod_assign.gradedon' | translate }}

+

{{ feedback.gradeddate * 1000 | coreFormatDate }}

+
+
diff --git a/src/addon/mod/assign/components/submission/submission.ts b/src/addon/mod/assign/components/submission/submission.ts index cffefe88d..5b65ab853 100644 --- a/src/addon/mod/assign/components/submission/submission.ts +++ b/src/addon/mod/assign/components/submission/submission.ts @@ -485,12 +485,14 @@ export class AddonModAssignSubmissionComponent implements OnInit, OnDestroy { this.feedback = feedback; // If we have data about the grader, get its profile. - if (feedback.grade && feedback.grade.grader) { + if (feedback.grade && feedback.grade.grader > 0) { this.userProvider.getProfile(feedback.grade.grader, this.courseId).then((profile) => { this.grader = profile; }).catch(() => { // Ignore errors. }); + } else { + delete this.grader; } // Check if the grade uses advanced grading. diff --git a/src/addon/mod/assign/providers/prefetch-handler.ts b/src/addon/mod/assign/providers/prefetch-handler.ts index 93ecb3f68..7505ee97b 100644 --- a/src/addon/mod/assign/providers/prefetch-handler.ts +++ b/src/addon/mod/assign/providers/prefetch-handler.ts @@ -392,7 +392,7 @@ export class AddonModAssignPrefetchHandler extends CoreCourseActivityPrefetchHan // Prefetch feedback. if (submission.feedback) { // Get profile and image of the grader. - if (submission.feedback.grade && submission.feedback.grade.grader && submission.feedback.grade.grader != -1) { + if (submission.feedback.grade && submission.feedback.grade.grader > 0) { userIds.push(submission.feedback.grade.grader); }