Merge pull request #804 from MITx/fix/cdodge/cms-multiple-edit-save-bug

fix bug with editing HTML. The save() method should now return a diction...
This commit is contained in:
Calen Pennington
2012-10-02 09:14:41 -07:00
2 changed files with 4 additions and 1 deletions

View File

@@ -376,6 +376,7 @@ def save_item(request):
if not has_access(request.user, item_location):
raise PermissionDenied()
logging.debug(request.POST['data'])
if request.POST['data']:
data = request.POST['data']
modulestore().update_item(item_location, data)

View File

@@ -4,4 +4,6 @@ class @HTMLEditingDescriptor
mode: "text/html"
})
save: -> @edit_box.getValue()
save: ->
data: @edit_box.getValue()