Commit 21e338f7 by Adam

Merge pull request #8506 from edx/diana/fix-tab-duplication

Prevent duplication of tabs with different names.
parents 79a63bbe a41d9a54
......@@ -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