diff --git a/templates/ContentGenerator/Instructor/AchievementList/filter_form.html.ep b/templates/ContentGenerator/Instructor/AchievementList/filter_form.html.ep index f4537464f8..c64282bd37 100644 --- a/templates/ContentGenerator/Instructor/AchievementList/filter_form.html.ep +++ b/templates/ContentGenerator/Instructor/AchievementList/filter_form.html.ep @@ -7,7 +7,7 @@ [ maketext('all course achievements') => 'all' ], [ maketext('selected achievements') => 'selected' ], [ maketext('enter matching achievement IDs below') => 'match_ids', selected => undef ], - [ maketext('enter matching category below') => 'match_category' ], + [ maketext('select matching category below') => 'match_category' ], [ maketext('enabled achievements') => 'enabled' ], [ maketext('disabled achievements') => 'disabled' ] ], @@ -27,10 +27,7 @@
<%= maketext('Please enter a list of IDs to match.') %>
- % my @categories = $c->db->getAchievementCategories; - % for (@categories) { - % $_ = [$_ => $_]; - % } + % my @categories = grep { defined && $_ ne '' } $c->db->getAchievementCategories;
<%= label_for 'filter_category', class => 'col-form-label col-form-label-sm col-sm-auto', begin =%> <%= maketext('Match on which category?') =%>