Changing project member role doesn't work after first change
How to reproduce:
- Add a new user with one of the following roles (guest, developer, reporter, master) and click "save".
- Change the user role to a new role. GitLab EE will send an email with the firstly saved role, not with the one I had chosen.
It's not completely broken as it works when you do the second step again, but with changing the role again (cannot be the role described in step 1 or 2).