From 6e64e994f66138533b844c4def9755140b95ef74 Mon Sep 17 00:00:00 2001 From: Felix Sun Date: Mon, 26 Aug 2013 09:46:29 -0400 Subject: [PATCH] Fixed a test broken when the mixed modulestore was introduced. --- lms/djangoapps/instructor/hint_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/instructor/hint_manager.py b/lms/djangoapps/instructor/hint_manager.py index 71c2beb7d5..f97115f19b 100644 --- a/lms/djangoapps/instructor/hint_manager.py +++ b/lms/djangoapps/instructor/hint_manager.py @@ -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):