Cleanup PublishedMember

This commit is contained in:
Stephan
2019-04-22 11:58:51 +02:00
parent 4feb766cc6
commit a56f3b23d1
3 changed files with 1 additions and 63 deletions

View File

@@ -35,16 +35,13 @@ namespace Umbraco.Web.PublishedCache
// if they are not part of the member type properties - in which case they are created as
// simple raw properties - which are completely invariant
var _properties = PublishedProperty.MapProperties(_publishedMemberType.PropertyTypes, _member.Properties,
(t, v) => new RawValueProperty(t, this, v ?? string.Empty));
var properties = new List<IPublishedProperty>();
foreach (var propertyType in _publishedMemberType.PropertyTypes)
{
var property = _member.Properties[propertyType.Alias];
if (property == null) continue;
//properties.Add(new FooProperty(propertyType, this, property.Values));
properties.Add(new RawValueProperty(propertyType, this, property.GetValue()));
}
EnsureMemberProperties(properties);
_properties = properties.ToArray();