Fixes #5932, showing "Return to ListView" for new content

This commit is contained in:
Matt Brailsford
2019-07-18 11:04:06 +01:00
committed by Sebastiaan Janssen
parent 28dd9aa081
commit f3fc83fae6

View File

@@ -184,6 +184,10 @@
$scope.content = data;
if (data.isChildOfListView && data.trashed === false) {
$scope.page.listViewPath = $routeParams.page ? '/content/content/edit/' + data.parentId + '?page=' + $routeParams.page : '/content/content/edit/' + data.parentId;
}
init($scope.content);
resetLastListPageNumber($scope.content);