From 7b342e0130e83830fae28d6d53012537333ff212 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Wed, 20 Feb 2019 20:38:46 +0100 Subject: [PATCH] Fix for edu-content schema. --- src/Squidex.Domain.Apps.Entities/Schemas/State/SchemaState.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Squidex.Domain.Apps.Entities/Schemas/State/SchemaState.cs b/src/Squidex.Domain.Apps.Entities/Schemas/State/SchemaState.cs index 4cc1b47c5..800a41687 100644 --- a/src/Squidex.Domain.Apps.Entities/Schemas/State/SchemaState.cs +++ b/src/Squidex.Domain.Apps.Entities/Schemas/State/SchemaState.cs @@ -59,7 +59,7 @@ namespace Squidex.Domain.Apps.Entities.Schemas.State SchemaDef = SchemaDef.AddField(field); } - SchemaFieldsTotal++; + SchemaFieldsTotal = Math.Max(SchemaFieldsTotal, @event.FieldId.Id); } protected void On(SchemaCategoryChanged @event)