From d2e1997d840e8bc760e7f0c0127d557eb2a97b51 Mon Sep 17 00:00:00 2001 From: Paulo Viadanna Date: Wed, 4 Sep 2024 18:36:31 -0300 Subject: [PATCH] fix: wrong conditional --- 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