Issue Bug Closed

#36300Sys Action > Create backend user does not load existing user correctly

Bart Dubelaar 04/18/12, 16:50 updated 09/26/12, 22:40

Description

The selected usergroups are not loaded although code exists to support this:

$selected = (is_array($vars['usergroup']) && t3lib_div::inList(implode(',', $vars['usergroup']), $checkGroup['uid'])) ? ' selected="selected" ' : '';

The $vars array is the raw user record from the DB, where the usergroup list is already comma separated. Removing the code to convert from an array conversion fixes it:

$selected = t3lib_div::inList($vars['usergroup'], $checkGroup['uid']) ? ' selected="selected" ' : '';

I am very curious how this code came in to place :-)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.