Fixed template error on person page when positions or research areas are null

This commit is contained in:
rjy7 2011-01-27 21:09:28 +00:00
parent 7313e4210d
commit 0394cd971e

View file

@ -111,7 +111,9 @@
<#-- Positions --> <#-- Positions -->
<#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!> <#assign positions = propertyGroups.getPropertyAndRemoveFromList("${core}personInPosition")!>
<#if positions?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
<@p.objectPropertyListing positions editable /> <@p.objectPropertyListing positions editable />
</#if>
</header> </header>
<#-- Overview --> <#-- Overview -->
@ -119,7 +121,9 @@
<#-- Research Areas --> <#-- Research Areas -->
<#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!> <#assign researchAreas = propertyGroups.getPropertyAndRemoveFromList("${core}hasResearchArea")!>
<#if researchAreas?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
<@p.objectPropertyListing researchAreas editable /> <@p.objectPropertyListing researchAreas editable />
</#if>
</section> </section>
</section> </section>