Checkbox list property editor is now working.

This commit is contained in:
Shannon
2013-08-27 13:18:47 +10:00
parent 562a8f38bb
commit 3e95b0468f
14 changed files with 132 additions and 29 deletions

View File

@@ -47,12 +47,12 @@ namespace Umbraco.Core.Models
var cacheValue = propertyEditor.ValueEditor.FormatValueForCache(property);
switch (property.PropertyType.DataTypeDatabaseType)
{
case DataTypeDatabaseType.Nvarchar:
{
case DataTypeDatabaseType.Date:
case DataTypeDatabaseType.Integer:
xmlNode.AppendChild(xd.CreateTextNode(cacheValue.ToString()));
break;
case DataTypeDatabaseType.Nvarchar:
case DataTypeDatabaseType.Ntext:
//put text in cdata
xmlNode.AppendChild(xd.CreateCDataSection(cacheValue.ToString()));