U4-6825 Can't blank out values using the built-in EditProfile snippet

#U4-6825 Fixed
This commit is contained in:
Sebastiaan Janssen
2015-07-14 15:32:08 +02:00
parent 6aa633c8c5
commit 7bc208e490

View File

@@ -105,9 +105,7 @@ namespace Umbraco.Web.Security
.Where(p => member.ContentType.PropertyTypeExists(p.Alias))
.Where(property => member.Properties.Contains(property.Alias))
//needs to be editable
.Where(p => member.ContentType.MemberCanEditProperty(p.Alias))
//needs to have a value
.Where(p => p.Value != null))
.Where(p => member.ContentType.MemberCanEditProperty(p.Alias)))
{
member.Properties[property.Alias].Value = property.Value;
}