Skip to content

Commit

Permalink
fix: respect ENABLE_NEW_STRUCTURE_DISCUSSIONS flag in course import (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 authored Jan 3, 2024
1 parent 5e7a91f commit ec86398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/djangoapps/contentstore/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ def sync_discussion_settings(course_key, user):
course.discussions_settings['provider_type'] = Provider.OPEN_EDX
modulestore().update_item(course, user.id)

discussion_config.provider_type = Provider.OPEN_EDX
discussion_config.provider_type = Provider.OPEN_EDX

discussion_config.enable_graded_units = discussion_settings['enable_graded_units']
discussion_config.unit_level_visibility = discussion_settings['unit_level_visibility']
discussion_config.save()
Expand Down

0 comments on commit ec86398

Please sign in to comment.