mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Added "TypeName" to element data serialization black list.
Having the "TypeName" as part of the element's data field is redundant.
This commit is contained in:
@@ -12,7 +12,7 @@ using Orchard.Utility;
|
||||
|
||||
namespace Orchard.Layouts.Helpers {
|
||||
public static class ElementDataHelper {
|
||||
private static readonly string[] _elementDataBlackList = { "ElementData", "__RequestVerificationToken" };
|
||||
private static readonly string[] _elementDataBlackList = { "ElementData", "__RequestVerificationToken", "TypeName" };
|
||||
|
||||
public static string Get(this ElementDataDictionary data, string key, string defaultValue = null) {
|
||||
return data != null ? data.ContainsKey(key) ? data[key] : defaultValue : defaultValue;
|
||||
|
||||
Reference in New Issue
Block a user