diff --git a/src/System Application/App/Word Templates/src/WordTemplatesRelatedPart.Page.al b/src/System Application/App/Word Templates/src/WordTemplatesRelatedPart.Page.al index e729c065de..61ab7259f3 100644 --- a/src/System Application/App/Word Templates/src/WordTemplatesRelatedPart.Page.al +++ b/src/System Application/App/Word Templates/src/WordTemplatesRelatedPart.Page.al @@ -199,6 +199,8 @@ page 9987 "Word Templates Related Part" TempWordTemplateField.Reset(); TempWordTemplateField.SetRange("Table ID", Rec."Related Table ID"); TempWordTemplateField.DeleteAll(); + + SelectedFieldsCount.Remove(Rec."Related Table ID"); end; internal procedure AddRelatedTable(TableId: Integer)