diff --git a/backend/src/Squidex.Domain.Apps.Entities/Schemas/Commands/UpsertCommand.cs b/backend/src/Squidex.Domain.Apps.Entities/Schemas/Commands/UpsertCommand.cs index f0d823b11..6360bcfc1 100644 --- a/backend/src/Squidex.Domain.Apps.Entities/Schemas/Commands/UpsertCommand.cs +++ b/backend/src/Squidex.Domain.Apps.Entities/Schemas/Commands/UpsertCommand.cs @@ -56,7 +56,7 @@ namespace Squidex.Domain.Apps.Entities.Schemas.Commands if (FieldsInReferences != null) { - schema = schema.ConfigureFieldsInLists(FieldsInReferences); + schema = schema.ConfigureFieldsInReferences(FieldsInReferences); } if (!string.IsNullOrWhiteSpace(Category)) diff --git a/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs b/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs index c2dd7c0a4..131c514f0 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs @@ -24,6 +24,16 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models /// public SchemaScriptsDto? Scripts { get; set; } + /// + /// The names of the fields that should be used in references. + /// + public FieldNames? FieldsInReferences { get; set; } + + /// + /// The names of the fields that should be shown in lists, including meta fields. + /// + public FieldNames? FieldsInLists { get; set; } + /// /// Optional fields. ///