?
avatar Denitz
Denitz
31 Aug 2017

Steps to reproduce the issue

Create custom user fields.
Edit user and fill any data in custom fields.

Execute:

$user = JFactory::getUser($USER_ID);
$user->save();

Expected result

User custom fields values stay same.

Actual result

All user custom fields are empty (all data from #__fields_values table is deleted for this user).

Additional comments

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.

avatar Denitz Denitz - open - 31 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - change - 31 Aug 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 31 Aug 2017
avatar Denitz Denitz - change - 31 Aug 2017
The description was changed
avatar Denitz Denitz - edited - 31 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 31 Aug 2017
Category com_fields com_users
avatar Denitz Denitz - change - 1 Sep 2017
The description was changed
avatar Denitz Denitz - edited - 1 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Sep 2017

@laoneo can you please have a Look?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17801.

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2017
Status New Information Required
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-09-02 15:23:02
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 2 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - close - 2 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Sep 2017

closed as having Pull Request #17837


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17801.

Add a Comment

Login with GitHub to post a comment