get_items should take a course_id
This commit is contained in:
@@ -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}".
|
||||
|
||||
Reference in New Issue
Block a user