Commit bd4040c5 by ichuang

display_name may be empty (eg in tests)

parent f38a1ef1
...@@ -87,7 +87,7 @@ class SequenceModule(XModule): ...@@ -87,7 +87,7 @@ class SequenceModule(XModule):
'type': child.get_icon_class(), 'type': child.get_icon_class(),
} }
if childinfo['title']=='': if childinfo['title']=='':
childinfo['title'] = child.metadata['display_name'] childinfo['title'] = child.metadata.get('display_name','')
contents.append(childinfo) contents.append(childinfo)
params = {'items': contents, params = {'items': contents,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment