Pre-cache has_changes when computing ancestors

This commit is contained in:
Andy Armstrong
2014-08-28 20:03:31 -04:00
parent 1db107c2ce
commit c14891e920

View File

@@ -596,6 +596,9 @@ def _get_module_info(xblock, rewrite_static_links=True):
course_id=xblock.location.course_key
)
# Pre-cache has changes for the entire course because we'll need it for the ancestor info
modulestore().has_changes(modulestore().get_course(xblock.location.course_key, depth=None))
# Note that children aren't being returned until we have a use case.
return create_xblock_info(xblock, data=data, metadata=own_metadata(xblock), include_ancestor_info=True)