Commit a41d9a54 by Diana Huang

Prevent duplication of tabs with different names.

parent 79a63bbe
......@@ -999,7 +999,6 @@ def _refresh_course_tabs(request, course_module):
"""
tab_panel = {
"type": tab_type.name,
"name": tab_type.title,
}
has_tab = tab_panel in tabs
if tab_enabled and not has_tab:
......
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