V8: Fix sorting of the immediate children of editor start nodes (#6686)

This commit is contained in:
Kenn Jacobsen
2019-10-24 20:43:54 +02:00
committed by Sebastiaan Janssen
parent d312dc5f92
commit 6a8d3141c9
2 changed files with 2 additions and 4 deletions

View File

@@ -4,7 +4,6 @@
function ContentSortController($scope, $filter, $routeParams, contentResource, navigationService) {
var vm = this;
var parentId = $scope.currentNode.parentId ? $scope.currentNode.parentId : "-1";
var id = $scope.currentNode.id;
vm.loading = false;
@@ -42,7 +41,7 @@
vm.saveButtonState = "busy";
var args = {
parentId: parentId,
parentId: id,
sortedIds: _.map(vm.children, function(child){ return child.id; })
};

View File

@@ -4,7 +4,6 @@
function MediaSortController($scope, $filter, mediaResource, navigationService) {
var vm = this;
var parentId = $scope.currentNode.parentId ? $scope.currentNode.parentId : "-1";
var id = $scope.currentNode.id;
vm.loading = false;
@@ -42,7 +41,7 @@
vm.saveButtonState = "busy";
var args = {
parentId: parentId,
parentId: id,
sortedIds: _.map(vm.children, function(child){ return child.id; })
};