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:
Sipke Schoorstra
2015-07-02 15:30:20 +03:00
parent 2873eb8991
commit b580995e4b

View File

@@ -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;