}
}
+ // Retrieve custom values for cases.
+ $customValues = CRM_Core_BAO_CustomValueTable::getEntityValues($caseID, 'Case');
+ $extends = array('case');
+ $groupTree = CRM_Core_BAO_CustomGroup::getGroupDetail(NULL, NULL, $extends);
+ $caseCustomFields = array();
+ while(list($id, $group_values) = each($groupTree)) {
+ while(list($id, $field_values) = each($group_values['fields'])) {
+ if(array_key_exists($id, $customValues)) {
+ $caseCustomFields[$id] = array(
+ 'label' => $field_values['label'],
+ 'value' => $customValues[$id],
+ );
+ }
+ }
+ }
$template->assign('caseRelationships', $caseRelationships);
$template->assign('caseRoles', $caseRoles);
$template->assign('otherRelationships', $otherRelationships);
$template->assign('globalRelationships', $relGlobal);
$template->assign('globalGroupInfo', $globalGroupInfo);
+ $template->assign('caseCustomFields', $caseCustomFields);
$contents = self::getCaseReport($clientID,
$caseID,
$activitySetName,
</table>
{/if}
+{if $caseCustomFields}
+<h2>{ts}Case Custom Fields{/ts}</h2>
+ <table class ="report-layout">
+ {foreach from=$caseCustomFields item=row}
+ <tr>
+ <th class="label">{$row.label}</td>
+ <td class="crm-case-report-custom-field">{$row.value}</td>
+ </tr>
+ {/foreach}
+ </table>
+{/if}
+
<h2>{ts}Case Activities{/ts}</h2>
{foreach from=$activities item=activity key=key}
<table class ="report-layout">