inside ensureWithinStartNode also check if node is trashed otherwise go to startnode.

This commit is contained in:
Marcel van Helmont
2018-08-30 21:06:29 +02:00
parent 26e2bc6afa
commit c29357b845

View File

@@ -250,7 +250,8 @@ angular.module("umbraco")
// make sure that last opened node is on the same path as start node
var nodePath = node.path.split(",");
if (nodePath.indexOf($scope.startNodeId.toString()) !== -1) {
// also make sure the node is not trashed
if (nodePath.indexOf($scope.startNodeId.toString()) !== -1 && node.trashed === false) {
$scope.gotoFolder({ id: $scope.lastOpenedNode, name: "Media", icon: "icon-folder" });
return true;
} else {