From 0292ca9bf3ed88de1044ff42e0cdfcd6530b4436 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Fri, 18 Jan 2013 11:18:19 -0100 Subject: [PATCH] Fixes issue with duplicated tags on inherited doc types. --- src/umbraco.cms/businesslogic/ContentType.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/umbraco.cms/businesslogic/ContentType.cs b/src/umbraco.cms/businesslogic/ContentType.cs index 59652b27a2..f0ee6bf8f7 100644 --- a/src/umbraco.cms/businesslogic/ContentType.cs +++ b/src/umbraco.cms/businesslogic/ContentType.cs @@ -1224,7 +1224,7 @@ namespace umbraco.cms.businesslogic temporaryList.Sort((a, b) => a.SortOrder.CompareTo(b.SortOrder)); // now that we aren't going to modify the list, we can set it to the class-scoped variable. - m_VirtualTabs = temporaryList; + m_VirtualTabs = temporaryList.DistinctBy(x => x.Id).ToList(); } private void populateMasterContentTypes(PropertyType pt, int docTypeId)