Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-16553-21' of git://github.com/bostelm/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
commit b1913094d4d0fc253e64a0a791375e762dd239e0 2 parents 63a7788 + 29bdd38
@samhemelryk samhemelryk authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 mod/assignment/type/upload/assignment.class.php
View
12 mod/assignment/type/upload/assignment.class.php
@@ -110,11 +110,6 @@ function view_feedback($submission=NULL) {
}
if (empty($submission->timemarked)) { /// Nothing to show, so print nothing
- if ($this->count_responsefiles($USER->id)) {
- echo $OUTPUT->heading(get_string('responsefiles', 'assignment'), 3);
- $responsefiles = $this->print_responsefiles($USER->id, true);
- echo $OUTPUT->box($responsefiles, 'generalbox boxaligncenter');
- }
return;
}
@@ -126,7 +121,12 @@ function view_feedback($submission=NULL) {
return;
}
- if ($grade->grade === null and empty($grade->str_feedback)) { /// Nothing to show yet
+ if ($grade->grade === null and empty($grade->str_feedback)) { // No grade to show yet
+ if ($this->count_responsefiles($USER->id)) { // but possibly response files are present
+ echo $OUTPUT->heading(get_string('responsefiles', 'assignment'), 3);
+ $responsefiles = $this->print_responsefiles($USER->id, true);
+ echo $OUTPUT->box($responsefiles, 'generalbox boxaligncenter');
+ }
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.