Fixed template error on person page when positions or research areas are null
This commit is contained in:
parent
7313e4210d
commit
0394cd971e
1 changed files with 6 additions and 2 deletions
|
@ -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 />
|
||||
</#if>
|
||||
</header>
|
||||
|
||||
<#-- 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 />
|
||||
</#if>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue