From 4f415ce0d473374afa61a4e83515cd21dadc4426 Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Sat, 17 Aug 2024 18:24:01 -0600 Subject: [PATCH] Fix warning with NULL/emptystring category in achievement list. --- .../Instructor/AchievementList/filter_form.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/ContentGenerator/Instructor/AchievementList/filter_form.html.ep b/templates/ContentGenerator/Instructor/AchievementList/filter_form.html.ep index f4537464f8..c202ec2c3a 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' ] ], @@ -29,7 +29,7 @@ % my @categories = $c->db->getAchievementCategories; % for (@categories) { - % $_ = [$_ => $_]; + % $_ = (defined($_) && $_ ne '') ? [$_ => $_] : ["\x{27E8}" . maketext('blank') . "\x{27E9}" => '']; % }
<%= label_for 'filter_category', class => 'col-form-label col-form-label-sm col-sm-auto', begin =%>