From 80e27f6d2e915c033344d4d2d9e14614876a8769 Mon Sep 17 00:00:00 2001 From: Paulo Viadanna Date: Wed, 4 Sep 2024 18:35:24 -0300 Subject: [PATCH] fix: unhide discussion tab when enabling it (#677) --- openedx/core/djangoapps/discussions/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/discussions/serializers.py b/openedx/core/djangoapps/discussions/serializers.py index 8eeb7e10278a..6cc18605df9f 100644 --- a/openedx/core/djangoapps/discussions/serializers.py +++ b/openedx/core/djangoapps/discussions/serializers.py @@ -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