WI# 30472 Placed check on hashtable add to check item has not already been added.

This commit is contained in:
Casey Neehouse
2012-02-21 16:03:46 -01:00
parent 2b9e798c35
commit 2eebc84f2f

View File

@@ -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
{