Allow IPropertyValueConverter to determine if a property has value

This commit is contained in:
Stephan
2018-07-16 19:14:00 +02:00
parent 2051caaa01
commit 05317bb5e6
6 changed files with 40 additions and 25 deletions

View File

@@ -90,11 +90,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
public override bool HasValue(string culture = null, string segment = null)
{
ContextualizeVariation(ref culture, ref segment);
var sourceValue = GetSourceValue(culture, segment);
return sourceValue != null &&
(!(sourceValue is string) || string.IsNullOrWhiteSpace((string) sourceValue) == false);
return PropertyType.IsValue(GetSourceValue(culture, segment));
}
// used to cache the CacheValues of this property