From bc5e3b4d66421dd649e196dd86a0de50b91e8f1e Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 21 Feb 2017 15:44:49 +1100 Subject: [PATCH] Fixes issue of moving an item to the root, it will throw a JS error because target.nodeType is null --- .../src/views/propertyeditors/listview/listview.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js index 0a1a14fc44..8542157607 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js @@ -483,7 +483,7 @@ function listViewController($rootScope, $scope, $routeParams, $injector, $cookie //we need to do a double sync here: first refresh the node where the content was moved, // then refresh the node where the content was moved from navigationService.syncTree({ - tree: target.nodeType, + tree: target.nodeType ? target.nodeType : (target.metaData.treeAlias), path: newPath, forceReload: true, activate: false