diff --git a/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs b/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs index 66a316fd0f..28adeb7663 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyValueEditor.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Xml.Linq; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using Umbraco.Core.Logging; using Umbraco.Core.Manifest; using Umbraco.Core.Models; @@ -176,6 +176,12 @@ namespace Umbraco.Core.PropertyEditors /// internal Attempt TryConvertValueToCrlType(object value) { + var jv = value as JValue; + if (jv != null) + { + value = value.ToString(); + } + //this is a custom check to avoid any errors, if it's a string and it's empty just make it null var s = value as string; if (s != null) @@ -391,4 +397,4 @@ namespace Umbraco.Core.PropertyEditors } } } -} \ No newline at end of file +}