sakaiproject/Hilary — pull request #287 by nicolaasmatthijs (2012-12-12 16:57:29+00:00)
Title: User memberships bug

The following bugs were found:

- Getting the list of memberships from a user with only 1 membership never worked
- Paging the list of memberships for a user with uncached membership would be incorrect the first time

Part of the issue was that a slice was done with a passed in argument. Because the tests passed in `null`, they didn't fail. However, when the UI doesn't pass in an argument, `undefined` is passed in and it did fail. Therefore, every time we call the internal API function directly, we should be using `undefined` instead of `null`, as that resembles the UI more closely.