Fixes U4-2397 IContent Properties added with incorrect Value when read from Cache, and adds unit test for verifying types saved and returned for 24 standard DataTypes.

This commit is contained in:
Morten Christensen
2013-08-12 16:20:32 +02:00
parent 363de53b82
commit 86811fe507
6 changed files with 124 additions and 22 deletions

View File

@@ -106,7 +106,7 @@ namespace umbraco.editorControls
public void Save()
{
if (ItemIdValue.Value.Trim() != "")
_data.Value = ItemIdValue.Value.Trim();
_data.Value = int.Parse(ItemIdValue.Value.Trim());
else
_data.Value = null;
}