diff --git a/templates/ContentGenerator/Instructor/UserList/user_list_field.html.ep b/templates/ContentGenerator/Instructor/UserList/user_list_field.html.ep index 40f5535265..3eefe29265 100644 --- a/templates/ContentGenerator/Instructor/UserList/user_list_field.html.ep +++ b/templates/ContentGenerator/Instructor/UserList/user_list_field.html.ep @@ -51,7 +51,7 @@ id => $fieldName . '_id', class => 'form-select form-select-sm w-auto flex-grow-0', 'aria-labelledby' => 'permission_header' =%> % } else { - <%= maketext((grep { $ce->{userRoles}{$_} eq $value } keys %{ $ce->{userRoles} })[0]) %> + <%= maketext((grep { $ce->{userRoles}{$_} eq $value } keys %{ $ce->{userRoles} })[0] // "PermLevel$value") %> % } % } elsif ($properties->{type} eq 'password') { % # Note that this is only called if in editMode.