From e7994d077ea25bc76331808800ca4da97832214d Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 2 Jun 2014 15:40:24 +1000 Subject: [PATCH] minor logic change for checking if sort exists --- src/Umbraco.Core/Models/PropertyTypeCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Models/PropertyTypeCollection.cs b/src/Umbraco.Core/Models/PropertyTypeCollection.cs index f6a3c85510..38abd0c57d 100644 --- a/src/Umbraco.Core/Models/PropertyTypeCollection.cs +++ b/src/Umbraco.Core/Models/PropertyTypeCollection.cs @@ -84,8 +84,8 @@ namespace Umbraco.Core.Models } } - //check if the item's sort order is already in use - if (this.Select(x => x.SortOrder).Contains(item.SortOrder)) + //check if the item's sort order is already in use + if (this.Any(x => x.SortOrder == item.SortOrder)) { //make it the next iteration item.SortOrder = this.Max(x => x.SortOrder) + 1;