fixes U4-11391 Content picker language drop down isn't working

This commit is contained in:
Shannon
2018-06-01 13:13:29 +10:00
parent 9e826004d8
commit e907a085bd
2 changed files with 2 additions and 2 deletions

View File

@@ -446,7 +446,7 @@ function umbTreeDirective($compile, $log, $q, $rootScope, treeService, notificat
loadTree().then(function () {
//because angular doesn't return a promise for the resolve method, we need to resort to some hackery, else
//like normal JS promises we could do resolve(...).then()
if (args.onLoaded && angular.isFunction(args.onLoaded)) {
if (args && args.onLoaded && angular.isFunction(args.onLoaded)) {
args.onLoaded();
}
});

View File

@@ -171,7 +171,7 @@ angular.module("umbraco").controller("Umbraco.Overlays.TreePickerController",
queryParams["startNodeId"] = $scope.model.startNodeId;
}
if (vm.selectedLanguage && vm.selectedLanguage.id) {
queryParams["languageId"] = vm.selectedLanguage.id;
queryParams["culture"] = vm.selectedLanguage.culture;
}
var queryString = $.param(queryParams); //create the query string from the params object