diff --git a/grade/report/singleview/classes/local/ui/dropdown_attribute.php b/grade/report/singleview/classes/local/ui/dropdown_attribute.php index 50f1ce99667..06b37e1aa67 100644 --- a/grade/report/singleview/classes/local/ui/dropdown_attribute.php +++ b/grade/report/singleview/classes/local/ui/dropdown_attribute.php @@ -93,7 +93,8 @@ class dropdown_attribute extends element { 'value' => $option, 'selected' => $selected == $option ]; - }, array_keys($options)) + }, array_keys($options)), + 'label' => get_string('gradefor', 'gradereport_singleview', $this->label), ); return $OUTPUT->render_from_template('gradereport_singleview/dropdown_attribute', $context); diff --git a/grade/report/singleview/templates/dropdown_attribute.mustache b/grade/report/singleview/templates/dropdown_attribute.mustache index e6388ca809e..adecdd8891f 100644 --- a/grade/report/singleview/templates/dropdown_attribute.mustache +++ b/grade/report/singleview/templates/dropdown_attribute.mustache @@ -17,6 +17,7 @@ {{! Dropdown attribute. }} + {{#options}}