Fix IPropertyValueConverter determining HasValue

This commit is contained in:
Stephan
2018-07-19 11:02:51 +02:00
parent 6c526b24a0
commit d36ec60039
9 changed files with 130 additions and 17 deletions

View File

@@ -210,7 +210,7 @@ namespace Umbraco.Tests.Published
public int SourceConverts { get; private set; }
public int InterConverts { get; private set; }
public bool IsValue(object value)
public bool? IsValue(object value, PropertyValueLevel level)
=> value != null && (!(value is string) || string.IsNullOrWhiteSpace((string) value) == false);
public bool IsConverter(PublishedPropertyType propertyType)