mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixed the fields display when editing a content type
--HG-- branch : dev
This commit is contained in:
@@ -84,8 +84,8 @@ namespace Orchard.ContentTypes.Controllers {
|
||||
entry.model.Templates = _extendViewModels.TypePartEditor(entry.definition);
|
||||
|
||||
var fields = entry.model.PartDefinition.Fields.Join(entry.definition.PartDefinition.Fields,
|
||||
m => m.FieldDefinition.Name,
|
||||
d => d.FieldDefinition.Name,
|
||||
m => m.Name,
|
||||
d => d.Name,
|
||||
(model, definition) => new { model, definition });
|
||||
|
||||
foreach (var field in fields) {
|
||||
@@ -100,8 +100,8 @@ namespace Orchard.ContentTypes.Controllers {
|
||||
if (contentPartDefinition != null) {
|
||||
viewModel.Fields = viewModel.Fields.ToArray();
|
||||
var fields = viewModel.Fields.Join(contentPartDefinition.Fields,
|
||||
m => m.FieldDefinition.Name,
|
||||
d => d.FieldDefinition.Name,
|
||||
m => m.Name,
|
||||
d => d.Name,
|
||||
(model, definition) => new { model, definition });
|
||||
|
||||
foreach (var field in fields) {
|
||||
|
||||
Reference in New Issue
Block a user