Fixed a test broken when the mixed modulestore was introduced.

This commit is contained in:
Felix Sun
2013-08-26 09:46:29 -04:00
parent 74ed2dafb3
commit 6e64e994f6

View File

@@ -215,7 +215,7 @@ def add_hint(request, course_id, field):
# Validate the answer. This requires initializing the xmodules, which
# is annoying.
loc = Location(problem_id)
descriptors = modulestore().get_items(loc)
descriptors = modulestore().get_items(loc, course_id=course_id)
m_d_c = model_data.ModelDataCache(descriptors, course_id, request.user)
hinter_module = module_render.get_module(request.user, request, loc, m_d_c, course_id)
if not hinter_module.validate_answer(answer):