Check that vClassGroup is non-null to prevent errors on the page
This commit is contained in:
parent
4151edf34c
commit
31ea87ae58
1 changed files with 9 additions and 6 deletions
|
@ -2,12 +2,15 @@
|
|||
|
||||
<#assign populatedClasses = 0 />
|
||||
|
||||
<#if vClassGroup??> <#-- the controller may put a null -->
|
||||
<#list vClassGroup as vClass>
|
||||
<#-- Check to see if any of the classes in this class group have individuals -->
|
||||
<#if (vClass.entityCount > 0)>
|
||||
<#assign populatedClasses = populatedClasses + 1 />
|
||||
</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
|
||||
<#if (populatedClasses == 0)>
|
||||
<#assign noData = true />
|
||||
<#else>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue