Fixes: U4-3350 Content Validation: Can't get rid of DateTime error

This commit is contained in:
Shannon
2013-11-07 14:58:41 +11:00
parent 345b96e253
commit 3d6eea9470
4 changed files with 25 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Newtonsoft.Json;
using Umbraco.Core.Logging;
using Umbraco.Core.Manifest;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Editors;
@@ -223,7 +224,8 @@ namespace Umbraco.Core.PropertyEditors
var result = TryConvertValueToCrlType(editorValue.Value);
if (result.Success == false)
{
throw new InvalidOperationException("The value " + editorValue + " cannot be converted to the type " + GetDatabaseType());
LogHelper.Warn<PropertyValueEditor>("The value " + editorValue.Value + " cannot be converted to the type " + GetDatabaseType());
return null;
}
return result.Result;
}