Merge pull request #6988 from kjac/v8/fix/hide-breadcrumb-for-recycle-bin-children
V8: Do not show the breadcrumb for immediate children in the recycle bin
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
$scope.page.isNew = Object.toBoolean(newVal);
|
||||
|
||||
//We fetch all ancestors of the node to generate the footer breadcrumb navigation
|
||||
if (content.parentId && content.parentId !== -1) {
|
||||
if (content.parentId && content.parentId !== -1 && content.parentId !== -20) {
|
||||
loadBreadcrumb();
|
||||
if (!watchingCulture) {
|
||||
$scope.$watch('culture',
|
||||
|
||||
@@ -245,7 +245,7 @@ function mediaEditController($scope, $routeParams, $q, appState, mediaResource,
|
||||
syncTreeNode($scope.content, data.path, true);
|
||||
}
|
||||
|
||||
if ($scope.content.parentId && $scope.content.parentId != -1) {
|
||||
if ($scope.content.parentId && $scope.content.parentId !== -1 && $scope.content.parentId !== -21) {
|
||||
//We fetch all ancestors of the node to generate the footer breadcrump navigation
|
||||
entityResource.getAncestors(nodeId, "media")
|
||||
.then(function (anc) {
|
||||
|
||||
Reference in New Issue
Block a user