Commit d8345b4b by ichuang

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

parent 4fbf23b6
......@@ -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
......
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