U4-8065 Inherited from is empty - reverts 10617d1bd5, turns out this is why we needed that property value
This commit is contained in:
@@ -35,6 +35,14 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "contentTypeId")]
|
||||
[ReadOnly(true)]
|
||||
public int ContentTypeId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// This is required for the UI editor to know which content type name this property belongs
|
||||
/// to based on the property inheritance structure
|
||||
/// </summary>
|
||||
[DataMember(Name = "contentTypeName")]
|
||||
[ReadOnly(true)]
|
||||
public string ContentTypeName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,7 +218,8 @@ namespace Umbraco.Web.Models.Mapping
|
||||
Inherited = inherited,
|
||||
DataTypeId = p.DataTypeDefinitionId,
|
||||
SortOrder = p.SortOrder,
|
||||
ContentTypeId = contentType.Id
|
||||
ContentTypeId = contentType.Id,
|
||||
ContentTypeName = contentType.Name
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user