Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)"
This reverts commit 52b670973d.
This commit is contained in:
@@ -173,8 +173,8 @@ namespace Umbraco.Web
|
||||
return value;
|
||||
|
||||
// else... if we have a property, at least let the converter return its own
|
||||
// vision of 'no value' (could be an empty enumerable) - otherwise, defaultValue
|
||||
return property == null ? defaultValue : property.Value<T>(culture, segment, defaultValue: defaultValue);
|
||||
// vision of 'no value' (could be an empty enumerable) - otherwise, default
|
||||
return property == null ? default : property.Value<T>(culture, segment);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user