Fixing that shapes resolved by Orchard.Templates could cause NRE because of ShapeDescriptor missing

This commit is contained in:
Lombiq
2014-10-09 13:07:53 +02:00
committed by Zoltán Lehóczky
parent ecd1f2e1b0
commit 0a38ab0a04

View File

@@ -38,8 +38,9 @@ namespace Orchard.Templates.Services {
BindingName = "Templates",
Binding = ctx => CoerceHtmlString(_templateService.Execute(
templateResult.Template,
templateResult.Name,
templateResult.Processor, ctx.Value))
templateResult.Name,
templateResult.Processor, ctx.Value)),
ShapeDescriptor = new ShapeDescriptor { ShapeType = shapeType }
};
return true;