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

This commit is contained in:
Shannon
2014-05-14 13:09:02 +10:00
parent 8c334a8c95
commit f6532d2743

View File

@@ -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;
}