Whoops, my last fix was a bit too broad

This commit is contained in:
Sebastiaan Janssen
2013-11-19 20:30:28 +01:00
parent 3d90e66d36
commit dea1e9e541

View File

@@ -540,8 +540,8 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
{
// use property type to ensure proper conversion
var propertyType = _contentType.GetPropertyType(i.Key);
if (i.Key != "isDoc" && i.Key != "image")
if (propertyType != null)
property = new XmlPublishedProperty(propertyType, false, i.Value); // false :: never preview a media
}