From f6532d27432eddcdef038ef12ec9be72e16a8e6e Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 14 May 2014 13:09:02 +1000 Subject: [PATCH] un-does the distinct check, in the past it was never like this, duplicate values were always allowed so by doing this it is a breaking change --- src/Umbraco.Core/Services/DataTypeService.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Umbraco.Core/Services/DataTypeService.cs b/src/Umbraco.Core/Services/DataTypeService.cs index 65bd78c2b0..f1bf4d1321 100644 --- a/src/Umbraco.Core/Services/DataTypeService.cs +++ b/src/Umbraco.Core/Services/DataTypeService.cs @@ -126,10 +126,6 @@ namespace Umbraco.Core.Services //now convert the collection to a string list var list = collection.FormatAsDictionary() .Select(x => x.Value.Value) - //It is definitely possible to have duplicate values but previously people were probably not expecting that, - // i.e. http://issues.umbraco.org/issue/U4-4880 - // besides, if we are just returning the values without their keys it should probably be the distinct values. - .Distinct() .ToList(); return list; }