Corrected 'Create New Content' action

--HG--
branch : dev
This commit is contained in:
Sébastien Ros
2010-10-16 10:39:58 -07:00
parent d1f411e1ce
commit c75fc16cd3

View File

@@ -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) {