Use the new name for item_id in contentstore.views.save_item

This commit is contained in:
Calen Pennington
2012-07-16 14:23:22 -04:00
parent 45144ec4ce
commit 6b28786784

View File

@@ -207,7 +207,7 @@ def save_item(request):
author_string = user_author_string(request.user)
export_to_github(course, "CMS Edit", author_string)
descriptor = modulestore().get_item(item_id)
descriptor = modulestore().get_item(item_location)
preview_html = get_module_previews(descriptor)
return HttpResponse(json.dumps(preview_html))