Browse Source

Bugfixes for synchronizing schema fields.

pull/447/head
Sebastian 6 years ago
parent
commit
37dc939686
  1. 2
      backend/src/Squidex.Domain.Apps.Entities/Schemas/Commands/UpsertCommand.cs
  2. 10
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs

2
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))

10
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/UpsertSchemaDto.cs

@ -24,6 +24,16 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
/// </summary>
public SchemaScriptsDto? Scripts { get; set; }
/// <summary>
/// The names of the fields that should be used in references.
/// </summary>
public FieldNames? FieldsInReferences { get; set; }
/// <summary>
/// The names of the fields that should be shown in lists, including meta fields.
/// </summary>
public FieldNames? FieldsInLists { get; set; }
/// <summary>
/// Optional fields.
/// </summary>

Loading…
Cancel
Save