Browse files

MDL-36587 Assignment: Hide Download All links when no submission have…

… been made
  • Loading branch information...
1 parent 595282d commit 9b7a5f654a0a10caabf6ddd7e53716145cbf6b68 @kastashov kastashov committed with damyon Nov 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/locallib.php
View
2 mod/assign/locallib.php
@@ -2303,7 +2303,7 @@ private function view_grading_table() {
$gradebookurl = '/grade/report/grader/index.php?id=' . $this->get_course()->id;
$links[$gradebookurl] = get_string('viewgradebook', 'assign');
}
- if ($this->is_any_submission_plugin_enabled()) {
+ if ($this->is_any_submission_plugin_enabled() && $this->count_submissions()) {
$downloadurl = '/mod/assign/view.php?id=' . $this->get_course_module()->id . '&action=downloadall';
$links[$downloadurl] = get_string('downloadall', 'assign');
}

0 comments on commit 9b7a5f6

Please sign in to comment.