Skip to content

Commit

Permalink
Merge 3889b11 into 2d3e10a
Browse files Browse the repository at this point in the history
  • Loading branch information
damianmoore committed May 24, 2014
2 parents 2d3e10a + 3889b11 commit 2d36a52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cms/admin/placeholderadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,14 @@ def move_plugin(self, request):
plugin = CMSPlugin.objects.get(pk=int(request.POST['plugin_id']))
placeholder = Placeholder.objects.get(pk=request.POST['placeholder_id'])
parent_id = request.POST.get('plugin_parent', None)
language = request.POST.get('plugin_language', plugin.language)
language = request.POST.get('plugin_language', None)
source_placeholder = plugin.placeholder
if not parent_id:
parent_id = None
else:
parent_id = int(parent_id)
if not language and plugin.language:
language = plugin.language
order = request.POST.getlist("plugin_order[]")
if not self.has_move_plugin_permission(request, plugin, placeholder):
return HttpResponseForbidden(force_unicode(_("You have no permission to move this plugin")))
Expand Down Expand Up @@ -568,4 +570,4 @@ class FrontendEditableAdmin(FrontendEditableAdminMixin):
def __init__(self, *args, **kwargs):
warnings.warn("Class FrontendEditableAdmin is deprecated and will be removed in 3.1. "
"Instead, use FrontendEditableAdminMixin.", DeprecationWarning)
super(FrontendEditableAdmin, self).__init__(*args, **kwargs)
super(FrontendEditableAdmin, self).__init__(*args, **kwargs)

0 comments on commit 2d36a52

Please sign in to comment.