mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Assigning the view to the view context.
This commit is contained in:
@@ -168,6 +168,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy {
|
||||
|
||||
context.ViewContext.ViewData = new ViewDataDictionary(context.Value);
|
||||
context.ViewContext.TempData = new TempDataDictionary();
|
||||
context.ViewContext.View = viewResult.View;
|
||||
viewResult.View.Render(context.ViewContext, sw);
|
||||
viewResult.ViewEngine.ReleaseView(controllerContext, viewResult.View);
|
||||
return new HtmlString(sw.GetStringBuilder().ToString());
|
||||
|
Reference in New Issue
Block a user