Skip to content
Snippets Groups Projects
Commit 94d3ccf6 authored by Calen Pennington's avatar Calen Pennington
Browse files

Always compute the metadata inheritance tree, even on a course module, so that...

Always compute the metadata inheritance tree, even on a course module, so that when walking down the tree, we always get the right data
parent a70a23a4
No related merge requests found
......@@ -391,8 +391,7 @@ class MongoModuleStore(ModuleStoreBase):
# if we are loading a course object, there is no parent to inherit the metadata from
# so don't bother getting it
if item['location']['category'] != 'course':
metadata_inheritance_tree = self.get_cached_metadata_inheritance_tree(Location(item['location']))
metadata_inheritance_tree = self.get_cached_metadata_inheritance_tree(Location(item['location']))
# TODO (cdodge): When the 'split module store' work has been completed, we should remove
# the 'metadata_inheritance_tree' parameter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment