Adds some error checking for launching a dialog - the tree node must resolve a tree alias - this is why the new 'options' are not working.

This commit is contained in:
Shannon
2013-11-05 09:59:18 +11:00
parent c36197a01c
commit 23e85920ef

View File

@@ -581,6 +581,10 @@ angular.module('umbraco.services')
var treeAlias = treeService.getTreeAlias(args.node);
var packageTreeFolder = treeService.getTreePackageFolder(treeAlias);
if (!treeAlias) {
throw "Could not get tree alias for node " + args.node.id;
}
if (packageTreeFolder) {
templateUrl = Umbraco.Sys.ServerVariables.umbracoSettings.appPluginsPath +
"/" + packageTreeFolder +