User tests: Successful: Unsuccessful:
The addUserToGroup doesn't work because the 'whereIn' method in Joomla\CMS\Table\User->bind() uses prepared statements based on zero-indexed array
Use the function UserHelper addUserToGroup with a user ID and a user group ID
The user is assigned to the group
The user is not assigned to the group
Nope
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
Why not do this in Joomla\CMS\Table\User::bind()
instead?
Labels |
Added:
Information Required
?
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-05-29 23:41:00 |
Closed_By | ⇒ | wilsonge |
I think doing it here is fine. Thanks!
I have tested this item✅ successfully on d832dbf
i've tested with the cli command
php cli/joomla.php user:addtogroup --username aaaa --group Manager
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29048.