Skip to content

Commit

Permalink
MDL-16553 Assignment, student view: show response files when no grade…
Browse files Browse the repository at this point in the history
… available
  • Loading branch information
bostelm committed Oct 7, 2011
1 parent 9086337 commit db35434
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mod/assignment/type/upload/assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit db35434

Please sign in to comment.