Fix the build

This commit is contained in:
Stephan
2014-05-18 21:27:41 +02:00
parent 82c1c95e35
commit dacec47cd9

View File

@@ -18,10 +18,7 @@ namespace Umbraco.Web.Models
/// Such a detached content can be part of a published property value.</remarks>
public DetachedContent(IEnumerable<IPublishedProperty> properties)
{
var propsa = properties.ToArray();
if (propsa.Any(x => x.PropertyType.IsDetachedOrNested == false))
throw new ArgumentException("At least one property type is neither detached nor nested.", "properties");
_properties = propsa.ToDictionary(x => x.PropertyTypeAlias, x => x, StringComparer.InvariantCultureIgnoreCase);
_properties = properties.ToDictionary(x => x.PropertyTypeAlias, x => x, StringComparer.InvariantCultureIgnoreCase);
}
// don't uncomment until you know what you are doing