PropertyGroupId can be null

This commit is contained in:
Sebastiaan Janssen
2013-03-25 07:51:44 -01:00
parent 5e18d13178
commit d1e02f506c

View File

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