Fixed a potential issue with new Container elements.

Making the ContentModelMap the default mapper for all elements fixes a potential issue when a new Container element is introduced but no model map implementation exists for that container. Letting the ContentModelMap handle the mapping by default would yield best results rather than doing no mapping at all.
This commit is contained in:
Sipke Schoorstra
2015-12-20 16:33:34 +01:00
parent 9715ee88df
commit 68c94f4534

View File

@@ -100,7 +100,7 @@ namespace Orchard.Layouts.Services {
public virtual string LayoutElementType { get { return "Content"; } }
public virtual bool CanMap(Element element) {
return !(element is Container);
return true;
}
public virtual Element ToElement(IElementManager elementManager, DescribeElementsContext describeContext, JToken node) {