Ensures footer breadcrumb in content and media returned in correct order

This commit is contained in:
AndyButland
2015-03-25 21:52:39 +01:00
parent e775471013
commit 0c107fd869
3 changed files with 3 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ function ContentEditController($scope, $rootScope, $routeParams, $q, $timeout, $
if (content.parentId && content.parentId != -1) {
entityResource.getAncestors(content.id, "document")
.then(function (anc) {
$scope.ancestors = anc.reverse();
$scope.ancestors = anc;
});
}
}

View File

@@ -71,7 +71,7 @@ function mediaEditController($scope, $routeParams, appState, mediaResource, enti
//We fetch all ancestors of the node to generate the footer breadcrump navigation
entityResource.getAncestors($routeParams.id, "media")
.then(function (anc) {
$scope.ancestors = anc.reverse();
$scope.ancestors = anc;
});
}

View File

@@ -557,6 +557,7 @@ namespace Umbraco.Web.Editors
return Services.EntityService.GetAll(objectType.Value, ids)
.WhereNotNull()
.OrderBy(x => x.Level)
.Select(Mapper.Map<EntityBasic>);
}
//now we need to convert the unknown ones