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

This commit is contained in:
rjy7 2011-01-27 21:09:23 +00:00
parent b5777a60ad
commit c01dc9bf65

View file

@ -33,15 +33,14 @@
</#list>
</#macro>
<#-- Full object property listing, including heading and ul wrapper element. -->
<#-- Full object property listing, including heading and ul wrapper element.
Assumes property is non-null. -->
<#macro objectPropertyListing property editable template=property.template>
<#if property?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
<#local localName = property.localName>
<h2 id="${localName}">${property.name?capitalize} <@addLink property editable /></h2>
<ul id="individual-${localName}" role="list">
<@p.objectProperty property editable />
</ul>
</#if>
<#local localName = property.localName>
<h2 id="${localName}">${property.name?capitalize} <@addLink property editable /></h2>
<ul id="individual-${localName}" role="list">
<@p.objectProperty property editable />
</ul>
</#macro>
<#macro objectPropertyList property editable statements=property.statements template=property.template>