Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Possible bug in DNN 7 when updating a custom userprofile propertyPossible bug in DNN 7 when updating a custom userprofile property
Previous
 
Next
New Post
6/14/2015 8:09 AM
 

Hi, 

I've created a custom UserProfile property - named "testId" of type integer with default value as 0;

The behaviour is quite odd when tested manually like in following cases:

  1.   In a custom module's load handler I update this property's value by:
    ModuleContext.PortalSettings.UserInfo.Profile.SetProfileProperty("testId", "1234");
    If I now go to User's Edit Profile view, I can see the updated value i.e. 1234. When I visit this page again after sign-out and sign-in, the value is set to 0.
    The updated value is persisted in the same session. Do I need to call anything else after above code statement?
  2. If I update the value by using same edit profile view, then sign-out and sign-in, the updated value is persisted. 
  3. I've tried this many a times with combination of 1)  & 2) above. But on next sign-in, the value that is updated using 2 is show. 

May be I'm missing something that is supposed to be used after above statement. But I do see the value in the Profile view if its the same session.

Please help.

 
New Post
6/14/2015 8:37 AM
 

I've just tested the same cases for a custom string property as well. Faced same odd behaviour as mentioned above.

 
New Post
6/20/2015 12:14 PM
 
Can anyone please help me how to solve above issue?
 
New Post
6/23/2015 6:57 AM
 
I've fixed this issue. The important bit that my code was missing:

UserController.UpdateUser(PortalId, UserInfo);

This triggers the update to the changes done in the profile. I'm quite surprised that no one managed to help in these weeks! :O Anyway, its documented here, so maybe it will help someone in future.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Possible bug in DNN 7 when updating a custom userprofile propertyPossible bug in DNN 7 when updating a custom userprofile property


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out