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:
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user