Error when editing users

Jun 1, 2014 at 8:35 AM
Mike
When I tried out the User Management pages I ran into an issue with the edit user feature. The error basically said the comparison of two data types on line 31 was invalid. I am really new at this but my work-around was to change the line to look as follows:
      if (Convert.ToInt64(roleId) != user.RoleId) {
I haven't figured out why the check is there except to prevent and update to a table if it is not needed. It does seem to allow for any numeric value to pass the validation since it doesn't check to see if the supplied RoleID correlates to and existing roleid. The value should be coming from a list of valid values in the form so it might be safe to assume it is within range.
Coordinator
Jun 2, 2014 at 9:38 AM
Where roleId is declared and assigned on line 25, that should be
var roleId = Request["RoleId"].AsInt();
I'll upload a fix soon.
Jun 2, 2014 at 4:17 PM
Thanks Mike, will this be an isolated fix or part of a new point release

H

Coordinator
Jun 2, 2014 at 6:52 PM
It will be part of the next release, which will mainly consist of some other bug fixes and general tidying up/refactoring.