Commit a16aee34 by Chris Dodge

get_items should take a course_id

parent 606e8b1d
...@@ -458,7 +458,10 @@ def jump_to_id(request, course_id, module_id): ...@@ -458,7 +458,10 @@ def jump_to_id(request, course_id, module_id):
course_location = CourseDescriptor.id_to_location(course_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: if len(items) == 0:
raise Http404("Could not find id = {0} in course_id = {1}. Referer = {2}". raise Http404("Could not find id = {0} in course_id = {1}. Referer = {2}".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment