From 57d0dd1b0b4debf6da5ca02c50ad951b1e895f58 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 25 Sep 2012 10:01:20 -0400 Subject: [PATCH] Pass location to get_containing_courses --- cms/djangoapps/contentstore/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index bb35c8ee08..ff08588a63 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -110,7 +110,7 @@ def edit_item(request): lms_link = "{lms_base}/courses/{course_id}/jump_to/{location}".format( lms_base=settings.LMS_BASE, # TODO: These will need to be changed to point to the particular instance of this problem in the particular course - course_id=modulestore().get_containing_courses()[0].id, + course_id=modulestore().get_containing_courses(item.location)[0].id, location=item.location, ) else: