reverts the change for the showing an error if the node doesn't exist - it was for a start node (i.e. based on a user), not for an existing picked node

This commit is contained in:
Shannon
2017-03-13 16:00:56 +11:00
parent d42d96e166
commit 2dd31f0f05
2 changed files with 1 additions and 10 deletions

View File

@@ -156,9 +156,7 @@ function entityResource($q, $http, umbRequestHelper) {
umbRequestHelper.getApiUrl(
"entityApiBaseUrl",
"GetById",
[{ id: id }, { type: type }]),
//http configuration - in this case we don't want the interceptor to handle 404s
{ umbIgnoreStatus: [404] }),
[{ id: id }, { type: type }])),
'Failed to retrieve entity data for id ' + id);
},

View File

@@ -77,13 +77,6 @@ angular.module("umbraco").controller("Umbraco.Overlays.TreePickerController",
openMiniListView(node);
}
initTree();
},
function(response) {
if (response.status === 404) {
//doesn't exist anymore so reset
dialogOptions.startNodeId = null;
initTree();
}
});
}
else {