From 2eebc84f2f3b89a7f854ed75b1398fb0ca0b4bdf Mon Sep 17 00:00:00 2001 From: Casey Neehouse Date: Tue, 21 Feb 2012 16:03:46 -0100 Subject: [PATCH] WI# 30472 Placed check on hashtable add to check item has not already been added. --- umbraco/presentation/umbraco/controls/ContentControl.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/umbraco/presentation/umbraco/controls/ContentControl.cs b/umbraco/presentation/umbraco/controls/ContentControl.cs index e25746cade..014342b6f8 100644 --- a/umbraco/presentation/umbraco/controls/ContentControl.cs +++ b/umbraco/presentation/umbraco/controls/ContentControl.cs @@ -136,7 +136,10 @@ namespace umbraco.controls if (property != null && tabPage != null) { addControlNew(property, tabPage, tab.Caption); - inTab.Add(propertyType.Id.ToString(), true); + + // adding this check, as we occasionally get an already in dictionary error, though not sure why + if (!inTab.ContainsKey(propertyType.Id.ToString())) + inTab.Add(propertyType.Id.ToString(), true); } else {