From c0902dbf1ace7bcac67b9b9cb121bb7956cf3322 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 6 Aug 2021 09:25:23 +0200 Subject: [PATCH] include inherited groups with local props in server validation index --- .../directives/components/umbgroupsbuilder.directive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js index ea8b7948aa..22b3f17a9e 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js @@ -46,8 +46,8 @@ scope.orderTabs(); // set server validation index - // the server filters out inherited groups when returning the group index - const noInherited = newValue.filter(group => !group.inherited); + // the server filters out inherited groups if they don't have any local properties when returning the group index + const noInherited = newValue.filter(group => !group.inherited || (group.inherited && group.properties.filter(property => !property.inherited).length > 0)); noInherited.forEach((group, index) => { group.serverValidationIndex = !group.inherited ? index : undefined;