Added missing SnippetDescriptor property to Snippet element shape.

This commit is contained in:
Daniel Stolt
2017-02-14 06:44:36 +02:00
parent 33bdfd0551
commit 234d5214dd

View File

@@ -125,6 +125,7 @@ namespace Orchard.Layouts.Providers {
var shape = (dynamic)_shapeFactory.Value.Create(shapeType);
shape.Element = context.Element;
shape.SnippetDescriptor = snippetDescriptor;
if (snippetDescriptor != null) {
foreach (var fieldDescriptor in snippetDescriptor.Fields) {