From 37dc939686d474384768b938e6b4e3687e0e8ab2 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 14 Nov 2019 12:33:13 +0100 Subject: [PATCH] Bugfixes for synchronizing schema fields. --- .../Schemas/Commands/UpsertCommand.cs | 2 +- .../Api/Controllers/Schemas/Models/UpsertSchemaDto.cs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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. ///