Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…OODLE_19_STABLE
  • Loading branch information...
commit e1b4fa3029e90af3ef75102bedd6c5a1e1be618f 2 parents d2a5725 + b9625c1
@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
@@ -80,11 +80,6 @@ function view_feedback($submission=NULL) {
}
if (empty($submission->timemarked)) { /// Nothing to show, so print nothing
- if ($this->count_responsefiles($USER->id)) {
- print_heading(get_string('responsefiles', 'assignment', $this->course->teacher), '', 3);
- $responsefiles = $this->print_responsefiles($USER->id, true);
- print_simple_box($responsefiles, 'center');
- }
return;
}
@@ -96,7 +91,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 grades to show yet
+ if ($this->count_responsefiles($USER->id)) { // but possibly response files to show
+ print_heading(get_string('responsefiles', 'assignment', $this->course->teacher), '', 3);
+ $responsefiles = $this->print_responsefiles($USER->id, true);
+ print_simple_box($responsefiles, 'center');
+ }
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.