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:
Poornima Nayar
2020-02-17 09:12:08 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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) {