Fixes tests and issue with member list view not passing the GUID along in the route

This commit is contained in:
Shannon
2018-10-23 22:10:27 +11:00
parent fa64f4a6a8
commit dfd3e8f4c4
3 changed files with 9 additions and 7 deletions

View File

@@ -77,10 +77,10 @@ function MemberEditController($scope, $routeParams, $location, $q, $window, appS
}
else {
//so, we usually refernce all editors with the Int ID, but with members we have
//a different pattern, adding a route-redirect here to handle this:
//isNumber doesnt work here since its seen as a string
//TODO: Why is this here - I don't understand why this would ever be an integer? This will not work when we support non-umbraco membership providers.
//a different pattern, adding a route-redirect here to handle this just in case.
//(isNumber doesnt work here since its seen as a string)
//The reason this might be an INT is due to the routing used for the member list view
//but this is now configured to use the key, so this is just a fail safe
if ($routeParams.id && $routeParams.id.length < 9) {