Update composition validation error messages

This commit is contained in:
Ronald Barendse
2021-10-14 15:06:28 +02:00
parent 1b06db8d5c
commit 705a3ed4e8

View File

@@ -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");
}
}