From 4e2afe7384a9f26f1919dd856c17797fe1027576 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