Merge pull request #8987 from edx/ormsbee/inline_discussion_ccx_perf_hotfix
Ormsbee/inline discussion ccx perf hotfix
This commit is contained in:
@@ -66,9 +66,13 @@ class DiscussionModule(DiscussionFields, XModule):
|
||||
|
||||
def get_course(self):
|
||||
"""
|
||||
Return course by course id.
|
||||
Return the CourseDescriptor at the root of the tree we're in.
|
||||
"""
|
||||
return self.descriptor.runtime.modulestore.get_course(self.course_id)
|
||||
block = self
|
||||
while block.parent:
|
||||
block = block.get_parent()
|
||||
|
||||
return block
|
||||
|
||||
|
||||
class DiscussionDescriptor(DiscussionFields, MetadataOnlyEditingDescriptor, RawDescriptor):
|
||||
|
||||
Reference in New Issue
Block a user