Fix Deserialization of defaultConfig from package.manifest

This commit is contained in:
Bjarke Berg
2021-03-10 19:32:56 +01:00
parent 5a8d3d167a
commit 88e92a0360
2 changed files with 4 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ namespace Umbraco.Cms.Core.PropertyEditors
/// <summary>
/// Represents a data type configuration editor.
/// </summary>
[DataContract]
public class ConfigurationEditor : IConfigurationEditor
{
private IDictionary<string, object> _defaultConfiguration;

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Runtime.Serialization;
using Umbraco.Cms.Core.Serialization;
namespace Umbraco.Cms.Core.PropertyEditors
@@ -11,6 +12,7 @@ namespace Umbraco.Cms.Core.PropertyEditors
/// <summary>
/// Gets the fields.
/// </summary>
[DataMember(Name = "fields")]
List<ConfigurationField> Fields { get; }
/// <summary>
@@ -22,6 +24,7 @@ namespace Umbraco.Cms.Core.PropertyEditors
/// equivalent of an actual configuration object (ie an instance of <c>TConfiguration</c>, obtained
/// via <see cref="ToConfigurationEditor"/>.</para>
/// </remarks>
[DataMember(Name = "defaultConfig")]
IDictionary<string, object> DefaultConfiguration { get; }
/// <summary>