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:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user