Show category when an xblock does not have a default display name

This commit is contained in:
Ben McMorran
2014-07-30 10:30:18 -04:00
parent 0181bb2d91
commit 2cc72ca015
2 changed files with 10 additions and 1 deletions

View File

@@ -372,7 +372,7 @@ def get_component_templates(course):
if category in ADVANCED_COMPONENT_TYPES and not category in categories:
# boilerplates not supported for advanced components
try:
component_display_name = get_component_display_name(category)
component_display_name = get_component_display_name(category, default_display_name=category)
advanced_component_templates['templates'].append(
create_template_dict(
component_display_name,