gitlabhq/gitlabhq — pull request #4332 by bladealslayer (2013-06-18 09:17:47+00:00)
Title: Fixed user removal from team and associated projects.

Added tests for adding and removing team members from associated projects.

Previously, when removing a user from a team, the user was not properly removed from associated projects. Reason was that the other_teams array was not flat, so when "empty" it actually looked like this: [[]].