Merge pull request #721 from robertjf/dev-v7
Issue U4-6734 Fix: Tweaks to TreePicker dialog for better entity support
This commit is contained in:
@@ -26,7 +26,8 @@ angular.module("umbraco").controller("Umbraco.Dialogs.TreePickerController",
|
||||
searchText = value + "...";
|
||||
});
|
||||
|
||||
var entityType = "Document";
|
||||
// Allow the entity type to be passed in but defaults to Document for backwards compatibility.
|
||||
var entityType = dialogOptions.entityType ? dialogOptions.entityType : "Document";
|
||||
|
||||
|
||||
//min / max values
|
||||
|
||||
@@ -29,7 +29,7 @@ angular.module('umbraco')
|
||||
$scope.openContentPicker =function() {
|
||||
var d = dialogService.treePicker({
|
||||
section: config.type,
|
||||
treeAlias: config.type,
|
||||
treeAlias: config.treeAlias,
|
||||
multiPicker: config.multiPicker,
|
||||
callback: populate
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user