On Home › Administer › User management > List users page we have an operations form called Update options where we should be able to assign or change a user type by selecting one or more users and submitting. Actually this feature isn't functional.

I am going to check the code to eventually propose a patch. Any other suggestions?

Comments

swentel’s picture

Mm weird, works fine here on my local host, so I have no idea what goes wrong

nunoveloso’s picture

After checking the code and the queries I just figured out where the problem is. The description I gave on the initial post of this thread is only valid if you install the user types module when you already have registered users.

Thus there is no need of a patch if you follow those steps after installing the module and setting up your custom types:

  1. go to Home › Administer › User management > List users page
  2. select all the users that haven't yet a type associated to
  3. select you default user type (e.g. "Normal user" )
  4. update them

Now you can switch you user types without issues.

Maybe there should be an initial mechanism to automatically set the users type on the installation of the module to avoid this.

swentel’s picture

Mmm that's weird, there is a function in the install file called user_types_fill_users() that associates all existing registered users with the normal user type. I'll run some more tests tomorrow to find out why it failed on your installation.

swentel’s picture

Ok everything runs smooth here on install, so not sure what goes wrong. Closing this for now as I simply can't reproduce.

swentel’s picture

Status: Active » Closed (fixed)