From e9941d3c35b91aa5050e5c130025ba580d3ce12e Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Wed, 6 Dec 2023 11:05:32 +0500 Subject: [PATCH] fix: Added check while syncing discussion settings in import (#33868) --- cms/djangoapps/contentstore/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cms/djangoapps/contentstore/tasks.py b/cms/djangoapps/contentstore/tasks.py index 69c9057966..8cf1f31728 100644 --- a/cms/djangoapps/contentstore/tasks.py +++ b/cms/djangoapps/contentstore/tasks.py @@ -715,6 +715,7 @@ def import_olx(self, user_id, course_key_string, archive_path, archive_name, lan from .views.entrance_exam import add_entrance_exam_milestone add_entrance_exam_milestone(course.id, entrance_exam_chapter) LOGGER.info(f'Course import {course.id}: Entrance exam imported') + if is_course: sync_discussion_settings(courselike_key, user)