I can't work out why this member property is not saving
Hi folks I wonder if anyone can tell me what I am doing wrong here.
I have a form where an artist can sign up to an event, giving various details. this is saved in a content item. Now I am trying to give the artist a login so they can edit their details. So I have created a member, and want to associate it to the artist's content item so my edit form knows what content to edit.
the property has type Umbraco.ContentPicker2 . I am able to set a suitable value in the umbraco admin site without problems
in SignupController.cs
var member = Services.MemberService.CreateWithIdentity(model.Email, model.Email, password, "ArtistMember");
if (member.HasProperty("artistContent"))
{
member.SetValue("artistContent", artistId);
}
Services.MemberService.Save(member);
The result is that the member is saved, but the property is not. I can debug through the code and see that the "SetValue" line gets hit. I tested out adding a text field, and that was saved successfully.
I can't work out why this member property is not saving
Hi folks I wonder if anyone can tell me what I am doing wrong here.
I have a form where an artist can sign up to an event, giving various details. this is saved in a content item. Now I am trying to give the artist a login so they can edit their details. So I have created a member, and want to associate it to the artist's content item so my edit form knows what content to edit.
the property has type Umbraco.ContentPicker2 . I am able to set a suitable value in the umbraco admin site without problems
in SignupController.cs
The result is that the member is saved, but the property is not. I can debug through the code and see that the "SetValue" line gets hit. I tested out adding a text field, and that was saved successfully.
In case anyone has the same problem, this was the fix
where artistUdi is
is working on a reply...