Include relation type alias when mapping to RelationTypeDisplay

This commit is contained in:
Kenn Jacobsen
2019-04-07 20:13:39 +02:00
parent 5cb85ebd52
commit 22f43e67f5

View File

@@ -14,7 +14,7 @@ namespace Umbraco.Web.Models.Mapping
mapper.Define<RelationTypeSave, IRelationType>(Map);
}
// Umbraco.Code.MapAll -Icon -Trashed -Alias -AdditionalData
// Umbraco.Code.MapAll -Icon -Trashed -AdditionalData
// Umbraco.Code.MapAll -Relations -ParentId -Notifications
private static void Map(IRelationType source, RelationTypeDisplay target, MapperContext context)
{
@@ -23,6 +23,7 @@ namespace Umbraco.Web.Models.Mapping
target.IsBidirectional = source.IsBidirectional;
target.Key = source.Key;
target.Name = source.Name;
target.Alias = source.Alias;
target.ParentObjectType = source.ParentObjectType;
target.Udi = Udi.Create(Constants.UdiEntityType.RelationType, source.Key);
target.Path = "-1," + source.Id;