Merge pull request #7045 from ronaldbarendse/v8/bugfix/nested-content-defaultpropertyvalueconverters

Add DefaultPropertyValueConverterAttribute to core Nested Content PropertyValueConverters
This commit is contained in:
Poornima Nayar
2020-01-23 11:26:13 +00:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ using Newtonsoft.Json.Linq;
using Umbraco.Core.Logging; using Umbraco.Core.Logging;
using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors;
using Umbraco.Core.PropertyEditors.ValueConverters;
using Umbraco.Web.PublishedCache; using Umbraco.Web.PublishedCache;
namespace Umbraco.Web.PropertyEditors.ValueConverters namespace Umbraco.Web.PropertyEditors.ValueConverters
@@ -14,6 +15,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
/// <summary> /// <summary>
/// Provides an implementation for <see cref="T:Umbraco.Core.PropertyEditors.IPropertyValueConverter" /> for nested content. /// Provides an implementation for <see cref="T:Umbraco.Core.PropertyEditors.IPropertyValueConverter" /> for nested content.
/// </summary> /// </summary>
[DefaultPropertyValueConverter(typeof(JsonValueConverter))]
public class NestedContentManyValueConverter : NestedContentValueConverterBase public class NestedContentManyValueConverter : NestedContentValueConverterBase
{ {
private readonly IProfilingLogger _proflog; private readonly IProfilingLogger _proflog;

View File

@@ -5,6 +5,7 @@ using Newtonsoft.Json.Linq;
using Umbraco.Core.Logging; using Umbraco.Core.Logging;
using Umbraco.Core.Models.PublishedContent; using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors; using Umbraco.Core.PropertyEditors;
using Umbraco.Core.PropertyEditors.ValueConverters;
using Umbraco.Web.PublishedCache; using Umbraco.Web.PublishedCache;
namespace Umbraco.Web.PropertyEditors.ValueConverters namespace Umbraco.Web.PropertyEditors.ValueConverters
@@ -13,6 +14,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
/// <summary> /// <summary>
/// Provides an implementation for <see cref="T:Umbraco.Core.PropertyEditors.IPropertyValueConverter" /> for nested content. /// Provides an implementation for <see cref="T:Umbraco.Core.PropertyEditors.IPropertyValueConverter" /> for nested content.
/// </summary> /// </summary>
[DefaultPropertyValueConverter(typeof(JsonValueConverter))]
public class NestedContentSingleValueConverter : NestedContentValueConverterBase public class NestedContentSingleValueConverter : NestedContentValueConverterBase
{ {
private readonly IProfilingLogger _proflog; private readonly IProfilingLogger _proflog;