You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create custom user fields for a user
Set ACL for these fields to e.g. author ACL level
Add the user to the author group
Add values for this user to the created custom user fields
remove the user from the author group via the back-end user manager
the user has no access anymore to the custom fields (= correct)
add the user to the author group via the back-end user manager
the user has access to the fields again and all values that where previously filled in by the user are retained
so far so good... now for the issue
in your code use public static function removeUserFromGroup($userId, $groupId) (UserHelper.php) to remove the user from the author group the user is removed from the author group AND all values set for the custom user fields for this user are deleted from the database!
add the user (via back-end) to the author user group
the user can re-enter (all values are erased!) again
Expected result
The user should be removed from the author user group, but the values in the custom fields should be retained just like when removing the user via the back-end.
Actual result
custom field values should be retained for the user when using public static function removeUserFromGroup($userId, $groupId)
System information (as much as possible)
Joomla 3.8.5
Additional comments
The text was updated successfully, but these errors were encountered:
Steps to reproduce the issue
create custom user fields for a user
Set ACL for these fields to e.g. author ACL level
Add the user to the author group
Add values for this user to the created custom user fields
the user has no access anymore to the custom fields (= correct)
the user has access to the fields again and all values that where previously filled in by the user are retained
so far so good... now for the issue
the user is removed from the author group AND all values set for the custom user fields for this user are deleted from the database!
the user can re-enter (all values are erased!) again
Expected result
The user should be removed from the author user group, but the values in the custom fields should be retained just like when removing the user via the back-end.
Actual result
custom field values should be retained for the user when using public static function removeUserFromGroup($userId, $groupId)
System information (as much as possible)
Joomla 3.8.5
Additional comments
The text was updated successfully, but these errors were encountered: