commit 97eb76ee77586d3a618091c512c69ce2e2041554 Author: Kirill Astashov Date: Wed Nov 14 13:58:17 2012 +1030 FLO-229: Hide Download All dropdown menu item when no submission have been made diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index aa0fa52..fc55ace 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -2215,7 +2215,7 @@ class assign { $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'); }