From a16aee340a0387227ca6d44c15008106ee9b3370 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Mon, 19 Aug 2013 13:41:12 -0400 Subject: [PATCH] get_items should take a course_id --- lms/djangoapps/courseware/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index e5f8f7f470..a53d549555 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -458,7 +458,10 @@ def jump_to_id(request, course_id, module_id): course_location = CourseDescriptor.id_to_location(course_id) - items = modulestore().get_items(['i4x', course_location.org, course_location.course, None, module_id]) + items = modulestore().get_items( + ['i4x', course_location.org, course_location.course, None, module_id], + course_id=course_id + ) if len(items) == 0: raise Http404("Could not find id = {0} in course_id = {1}. Referer = {2}".