From dacec47cd9413d77b3c41c5ba89fd57741f96366 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 18 May 2014 21:27:41 +0200 Subject: [PATCH] Fix the build --- src/Umbraco.Web/Models/DetachedContent.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Umbraco.Web/Models/DetachedContent.cs b/src/Umbraco.Web/Models/DetachedContent.cs index b00ff67c72..df4effa078 100644 --- a/src/Umbraco.Web/Models/DetachedContent.cs +++ b/src/Umbraco.Web/Models/DetachedContent.cs @@ -18,10 +18,7 @@ namespace Umbraco.Web.Models /// Such a detached content can be part of a published property value. public DetachedContent(IEnumerable 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