mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing that shapes resolved by Orchard.Templates could cause NRE because of ShapeDescriptor missing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user