From d1e02f506c8712f9e3df9bc388cf93573b2a19cb Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 25 Mar 2013 07:51:44 -0100 Subject: [PATCH] PropertyGroupId can be null --- .../umbraco/controls/ContentTypeControlNew.ascx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs index 97328a6363..331e65f01d 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentTypeControlNew.ascx.cs @@ -651,7 +651,7 @@ jQuery(document).ready(function() {{ refreshDropDowns(); }}); propertyType.DataTypeDefinitionId = dataTypeDefinition.Id; propertyType.DataTypeId = dataTypeDefinition.ControlId; - if (propertyType.PropertyGroupId.Value != gpw.GenricPropertyControl.Tab) + if (propertyType.PropertyGroupId == null || propertyType.PropertyGroupId.Value != gpw.GenricPropertyControl.Tab) { if (gpw.GenricPropertyControl.Tab == 0) {