Fixes U4-1483

This commit is contained in:
Morten Christensen
2013-02-01 07:35:48 -01:00
parent 1da27e6c2b
commit 27745ea141

View File

@@ -699,11 +699,13 @@ namespace umbraco.cms.businesslogic
continue;
//get the propertyId
var property = propData
.Where(x => x.PropertyTypeId == pt.Id)
.SingleOrDefault();
var property = propData.SingleOrDefault(x => x.PropertyTypeId == pt.Id);
if (property == null)
continue;
{
//continue;
var prop = Property.MakeNew(pt, this, Version);
property = new { Id = prop.Id, PropertyTypeId = pt.Id };
}
var propertyId = property.Id;
Property p = null;