diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js index 888a067a66..50318c783c 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js @@ -50,7 +50,7 @@ function treeService($q, treeResource, iconHelper, notificationsService, eventsS parentNode.cssClasses = []; } parentNode.cssClasses.push("no-access"); - } + } //create a method outside of the loop to return the parent - otherwise jshint blows up var funcParent = function() { @@ -264,6 +264,11 @@ function treeService($q, treeResource, iconHelper, notificationsService, eventsS args.node.expanded = true; args.node.hasChildren = true; } + + if (angular.isFunction(args.node.updateNodeData)) { + args.node.updateNodeData(args.node); + } + return data; }, function(reason) {