Fixes the build

This commit is contained in:
Sebastiaan Janssen
2016-01-06 15:21:45 +01:00
parent c524d67a37
commit 48ab3f580c

View File

@@ -652,13 +652,15 @@ namespace Umbraco.Core.Services
if (dataTypeDefinition == null) continue;
}
var sortOrder = 0;
int.TryParse(property.Element("SortOrder").Value, out sortOrder);
var propertyType = new PropertyType(dataTypeDefinition, property.Element("Alias").Value)
{
Name = property.Element("Name").Value,
Description = property.Element("Description").Value,
Mandatory = property.Element("Mandatory").Value.ToLowerInvariant().Equals("true"),
ValidationRegExp = property.Element("Validation").Value,
SortOrder = property.Element("SortOrder").Value
SortOrder = sortOrder
};
var tab = property.Element("Tab").Value;