fix course tabs from being imported with display_name=None due to overwriting policy

This commit is contained in:
ichuang
2013-08-27 18:46:50 -04:00
parent 4fbf23b66a
commit d8345b4b39

View File

@@ -794,7 +794,7 @@ class MongoModuleStore(ModuleStoreBase):
existing_tabs = course.tabs or []
for tab in existing_tabs:
if tab.get('url_slug') == loc.name:
tab['name'] = metadata.get('display_name')
tab['name'] = tab.get('name', metadata.get('display_name'))
break
course.tabs = existing_tabs
# Save the updates to the course to the MongoKeyValueStore