diff --git a/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-menus.ftl b/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-menus.ftl
index 0cd78b2b0..df68bbd06 100644
--- a/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-menus.ftl
+++ b/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-menus.ftl
@@ -4,7 +4,6 @@
<#import "lib-properties.ftl" as p>
<#assign subjectUri = individual.controlPanelUrl()?split("=") >
-<#assign nameForOtherGroup = nameForOtherGroup!"other">
<#if (propertyGroups.all)??>
<#assign groups = propertyGroups.all>
@@ -13,6 +12,7 @@
- #if>
- #if>
+ #if>
+ #if>
#if>
<#list propertyGroups.all as group>
+ <#if (group.properties?size > 0)>
<#assign groupName = group.getName(nameForOtherGroup)>
<#assign verbose = (verbosePropertySwitch.currentValue)!false>
@@ -50,4 +52,5 @@
<#-- List the properties in the group -->
<#include "individual-properties.ftl">
+ #if>
#list>
diff --git a/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-tabs.ftl b/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-tabs.ftl
index bb9bd9dc8..2c8d83e27 100644
--- a/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-tabs.ftl
+++ b/webapp/web/templates/freemarker/body/partials/individual/individual-property-group-tabs.ftl
@@ -11,14 +11,14 @@
<#list propertyGroups.all as groupTabs>
<#if ( groupTabs.properties?size > 0 ) >
- <#assign groupName = groupTabs.getName(nameForOtherGroup)>
- <#if groupName?has_content>
- <#--the function replaces spaces in the name with underscores, also called for the property group menu-->
- <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
- <#else>
- <#assign groupName = "${i18n().properties_capitalized}">
- <#assign groupNameHtmlId = "${i18n().properties}" >
- #if>
+ <#assign groupName = groupTabs.getName(nameForOtherGroup)>
+ <#if groupName?has_content>
+ <#--the function replaces spaces in the name with underscores, also called for the property group menu-->
+ <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
+ <#else>
+ <#assign groupName = "${i18n().properties_capitalized}">
+ <#assign groupNameHtmlId = "${i18n().properties}" >
+ #if>
<#if tabCount = 1 >
${groupName?capitalize}
@@ -35,30 +35,32 @@
#if>
<#list propertyGroups.all as group>
- <#assign groupName = group.getName(nameForOtherGroup)>
- <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
- <#assign verbose = (verbosePropertySwitch.currentValue)!false>
-
-
+ <#if (group.properties?size > 0)>
+ <#assign groupName = group.getName(nameForOtherGroup)>
+ <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
+ <#assign verbose = (verbosePropertySwitch.currentValue)!false>
+
+
- <#-- Display the group heading -->
- <#if groupName?has_content>
- <#--the function replaces spaces in the name with underscores, also called for the property group menu-->
- <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
-
${groupName?capitalize}
- <#else>
-
${i18n().properties_capitalized}
- #if>
+ <#-- Display the group heading -->
+ <#if groupName?has_content>
+ <#--the function replaces spaces in the name with underscores, also called for the property group menu-->
+ <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
+
${groupName?capitalize}
+ <#else>
+
${i18n().properties_capitalized}
+ #if>
<#-- List the properties in the group -->
<#include "individual-properties.ftl">