User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Issue reported by user on forum https://forum.joomla.org/viewtopic.php?f=708&t=960491.
User group array contains group IDs as keys but new user group uses title instead. This causes an issue when title is numeric as it can overwrite other keys.
Additionally, this fixes an error when using "0" as user group title.
Create an user assigned to group with ID 2 (that would be "Registered" group on fresh installation).
Create user groups titled "2" and "0".
Use JUserHelper::addUserToGroup($userId, $groupId);
to add user to newly created groups:
a) group "2";
b) group "0".
a) User is added to user group titled "2".
b) User is added to user group titled "0".
a) User is added to user group titled "2" but also removed from user group with ID 2 ("Registered").
b) "Access Usergroup Invalid" error.
Probably not.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
It breaks com_patchtester because the GitHub API can't be read to pull the PR's contents. Otherwise, no, it's not causing issues for now.
OK, I'll resubmit.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-04-05 20:25:22 |
Closed_By | ⇒ | SharkyKZ | |
Labels |
Added:
?
|
Missing/unknown repository.