mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user