mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Medium Trust: Fixing aditional dynamic invocations of View method.
--HG-- branch : dev
This commit is contained in:
@@ -62,12 +62,12 @@ namespace Orchard.Core.Containers.Controllers {
|
||||
var list = Shape.List();
|
||||
list.AddRange(pageOfItems.Select(item => _contentManager.BuildDisplay(item, "Summary")));
|
||||
|
||||
var viewModel = Shape.ViewModel()
|
||||
dynamic viewModel = Shape.ViewModel()
|
||||
.ContentItems(list)
|
||||
.Pager(pagerShape)
|
||||
.ShowPager(container.As<ContainerPart>().Record.Paginated);
|
||||
|
||||
return View(viewModel);
|
||||
return View((object)viewModel);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user