Skip to content

Commit

Permalink
fix: unhide discussion tab when enabling it (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
viadanna committed Sep 4, 2024
1 parent 11ddc19 commit 80e27f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/discussions/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _update_course_configuration(
}
# toogle discussion tab is_hidden
for tab in course.tabs:
if tab.tab_id == 'discussion' and tab.is_hidden != instance.enabled:
if tab.tab_id == 'discussion' and tab.is_hidden == instance.enabled:
tab.is_hidden = not instance.enabled
save = True
break
Expand Down

0 comments on commit 80e27f6

Please sign in to comment.