From 705a3ed4e86cc2df630eab239fc93bea9ad613f3 Mon Sep 17 00:00:00 2001 From: Ronald Barendse Date: Thu, 14 Oct 2021 15:06:28 +0200 Subject: [PATCH] Update composition validation error messages --- src/Umbraco.Web/Editors/ContentTypeControllerBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Editors/ContentTypeControllerBase.cs b/src/Umbraco.Web/Editors/ContentTypeControllerBase.cs index 60e10313ca..232ca92234 100644 --- a/src/Umbraco.Web/Editors/ContentTypeControllerBase.cs +++ b/src/Umbraco.Web/Editors/ContentTypeControllerBase.cs @@ -490,7 +490,7 @@ namespace Umbraco.Web.Editors var groupIndex = contentTypeSave.Groups.IndexOf(group); var key = $"Groups[{groupIndex}].Properties[{propertyIndex}].Alias"; - ModelState.AddModelError(key, "Duplicate property aliases are not allowed between compositions"); + ModelState.AddModelError(key, "Duplicate property aliases aren't allowed between compositions"); } foreach (var propertyGroupAlias in invalidPropertyGroupAliases) @@ -499,7 +499,7 @@ namespace Umbraco.Web.Editors var group = contentTypeSave.Groups.Single(x => x.Alias == propertyGroupAlias); var groupIndex = contentTypeSave.Groups.IndexOf(group); var key = $"Groups[{groupIndex}].Name"; - ModelState.AddModelError(key, "Same alias for tab and group is not allowed between compositions"); + ModelState.AddModelError(key, "Different group types aren't allowed between compositions"); } }