From 88e92a036022d98958d93cd768d30184c125cca3 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 10 Mar 2021 19:32:56 +0100 Subject: [PATCH] Fix Deserialization of defaultConfig from package.manifest --- src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs | 1 + src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs b/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs index d4f1d84984..dc1126a3c3 100644 --- a/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/ConfigurationEditor.cs @@ -10,6 +10,7 @@ namespace Umbraco.Cms.Core.PropertyEditors /// /// Represents a data type configuration editor. /// + [DataContract] public class ConfigurationEditor : IConfigurationEditor { private IDictionary _defaultConfiguration; diff --git a/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs b/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs index 413f7ee24b..4144c7c0a8 100644 --- a/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/IConfigurationEditor.cs @@ -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 /// /// Gets the fields. /// + [DataMember(Name = "fields")] List Fields { get; } /// @@ -22,6 +24,7 @@ namespace Umbraco.Cms.Core.PropertyEditors /// equivalent of an actual configuration object (ie an instance of TConfiguration, obtained /// via . /// + [DataMember(Name = "defaultConfig")] IDictionary DefaultConfiguration { get; } ///