Create custom user fields.
Edit user and fill any data in custom fields.
Execute:
$user = JFactory::getUser($USER_ID);
$user->save();
User custom fields values stay same.
All user custom fields are empty (all data from #__fields_values
table is deleted for this user).
All other API methods using JUser::save()
are affected, e.g.:
JUserHelper::addUserToGroup();
JUserHelper::removeUserFromGroup();
PS. It also looks like enormous amount of queries to fields tables are executed if you have lots fields.
Labels |
Added:
?
|
Category | ⇒ | com_fields com_users |
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-02 15:23:02 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17801
closed as having Pull Request #17837
@laoneo can you please have a Look?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17801.