Removed ability to sort member list view system fields other than those on the base table (others aren't handled so error)

This commit is contained in:
AndyButland
2014-12-13 22:29:32 +01:00
parent 5954c370ed
commit b9ff327536
@@ -82,6 +82,11 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific
e.allowSorting = true;
}
// Another special case for members, only fields on the base table (cmsMember) can be used for sorting
if (e.isSystem && $scope.entityType == "member") {
e.allowSorting = e.alias == 'username' || e.alias == 'email';
}
if (e.isSystem) {
//localize the header
var key = getLocalizedKey(e.alias);