From 0394cd971ed1088a3286cd9ac7cfc33004951176 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Thu, 27 Jan 2011 21:09:28 +0000 Subject: [PATCH] Fixed template error on person page when positions or research areas are null --- .../body/individual/individual--foaf-person.ftl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl index 778282fc..665db313 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl @@ -111,7 +111,9 @@ <#-- Positions --> <#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!> - <@p.objectPropertyListing positions editable /> + <#if positions?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <@p.objectPropertyListing positions editable /> + <#-- Overview --> @@ -119,7 +121,9 @@ <#-- Research Areas --> <#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!> - <@p.objectPropertyListing researchAreas editable /> + <#if researchAreas?has_content> <#-- true when the property is in the list, even if not populated (when editing) --> + <@p.objectPropertyListing researchAreas editable /> +