From b9625c16b66121eef11f27010f6f5b39461fe4a6 Mon Sep 17 00:00:00 2001 From: Henning Bostelmann Date: Sat, 20 Aug 2011 20:38:55 +0100 Subject: [PATCH] MDL-16553 Assignment, student view: show response files when no grade available --- mod/assignment/type/upload/assignment.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/assignment/type/upload/assignment.class.php b/mod/assignment/type/upload/assignment.class.php index d3bc484050a..17d1da096a9 100644 --- a/mod/assignment/type/upload/assignment.class.php +++ b/mod/assignment/type/upload/assignment.class.php @@ -80,11 +80,6 @@ class assignment_upload extends assignment_base { } 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 @@ class assignment_upload extends assignment_base { 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; }