mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Corrected 'Create New Content' action
--HG-- branch : dev
This commit is contained in:
@@ -197,13 +197,9 @@ namespace Orchard.Core.Contents.Controllers {
|
||||
}
|
||||
|
||||
ActionResult CreatableTypeList() {
|
||||
var list = Shape.List();
|
||||
list.AddRange("CreatableTypeList", GetCreatableTypes());
|
||||
var viewModel = Shape.ViewModel(ContentTypes: GetCreatableTypes());
|
||||
|
||||
var viewModel = Shape.ViewModel()
|
||||
.ContentTypes(list);
|
||||
|
||||
return View(viewModel);
|
||||
return View("CreatableTypeList", viewModel);
|
||||
}
|
||||
|
||||
public ActionResult Create(string id) {
|
||||
|
||||
Reference in New Issue
Block a user