By Altitudes on Saturday, 16 May 2015
Posted in Technical Issues
Likes 0
Views 645
Votes 0
Hello

Some profile fields, when they were set with "Appear During Editing" = "No" (in View tab when editing field in Profile Type), cannot be updated in Backend. Any modification done in Backend (editing user profile) is ignored.

It depends on the field type, I only tested some of them and at least the following field types have the issue:
Joomla User Fullname, Joomla User Password, Joomla User Timezone, Permalink, Birthday, Country, Datetime... and maybe some others (probably you'd better test them all!).

Thanks

.Fixed in ES 1.3.?
Hi,

I am really sorry for the delay of this reply as it is a weekend for us here.

By default the user profile backend is not respect this setting when you set to "Appear During Editing = "No" from the custom field.
·
Saturday, 16 May 2015 13:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes I know. The issue is that for some field types (I listed and maybe more), you cannot modify them in Backend: if you modify the value and apply the changes, nothing is changed...

This happen only when the field is set with "Appear During Editing = "No".
·
Saturday, 16 May 2015 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this. We'll see if we can do anything about this in the near future.
·
Sunday, 17 May 2015 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
I must say that this bug is very annoying for me, because I have some fields the user should not modify (I have set as "Appear During Editing" = "No"), because only an administrator should. And for now the admin can't... and even worse, the field may be reset when editing the profile!

Maybe if it not too complicated I can get a quick fix? At least for Joomla User Fullname, Birthday and Datetime fields?

Thank you
·
Monday, 18 May 2015 02:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

Regarding the issue where admin not able to update a custom field value if the field's setting 'Appear During Editing' set to 'No', I've fixed this issue internally. For the quick fix, edit the file 'JOOMLA/administrator/components/com_easysocial/controllers/users.php' at line start from 645:


if( $id ) {
$options['visible'] = SOCIAL_PROFILES_VIEW_EDIT;
} else {
$options['visible'] = SOCIAL_PROFILES_VIEW_REGISTRATION;
}


And replace the above if-else block with below:


if (! $id) {
$options['visible'] = SOCIAL_PROFILES_VIEW_REGISTRATION;
}


Your code should look like below after you replace with the above one.
http://screen.stackideas.com/2015-05-18_1103.png

The fix will be added into next release of EasySocial as well Let me know if the above fix your issue or not.

Hope this help and have a nice day!
Sam
·
Monday, 18 May 2015 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, it works perfectly well, and this was really important for me!
·
Monday, 18 May 2015 18:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes.

Glad your issue has been resolved
·
Monday, 18 May 2015 18:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post