User tests: Successful: Unsuccessful:
Issue reported by user on forum https://forum.joomla.org/viewtopic.php?f=708&t=960491.
This fixes an issue with JUserHelper::addUserToGroup()
when user group title is a number.
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.
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
Labels |
Added:
?
|
The result would be the same but I guess it is cleaner.
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-04-22 15:41:20 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
The
title
column is no longer applicable. Should the comment be removed and changeselect
to->select('id')
?