Skip to content

Commit

Permalink
#2053 Pass fieldsettings to region field collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sit-harry authored and tidyui committed Mar 22, 2024
1 parent be0c6da commit 7efca43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Piranha.AttributeBuilder/ContentTypeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ private IList<ContentTypeRegion> GetRegions(Type type)
regionType.Fields.Add(new ContentTypeField
{
Id = "Default",
Type = appFieldType.TypeName
Type = appFieldType.TypeName,
Settings = Utils.GetFieldSettings(prop)
});
}
else
Expand Down
1 change: 1 addition & 0 deletions core/Piranha.Manager/Services/ContentTypeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ private async Task<RegionItemModel> CreateRegionAsync(ContentTypeBase type, stri
{
field.Model = (IField)regionModel;
field.Meta.NotifyChange = true;
field.Meta.Settings = fieldType.Settings;
}
regionItem.Fields.Add(field);
}
Expand Down

0 comments on commit 7efca43

Please sign in to comment.