$this->assign('contact_type', $main['contact_type']);
if (!empty($main['contact_sub_type'])) {
$this->assign('main_contact_subtype',
- CRM_Utils_Array::value('contact_sub_type', $subtypes[$main['contact_sub_type'][0]])
+ CRM_Utils_Array::value($main['contact_sub_type'][0], $subtypes)
);
}
if (!empty($other['contact_sub_type'])) {
$this->assign('other_contact_subtype',
- CRM_Utils_Array::value('contact_sub_type', $subtypes[$other['contact_sub_type'][0]])
+ CRM_Utils_Array::value($other['contact_sub_type'][0], $subtypes)
);
}
$this->assign('main_name', $main['display_name']);
<table>
<tr class="columnheader">
<th> </th>
- <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name} <em>{$other_contact_subtype}</em></a> ({ts}duplicate{/ts})</th>
+ <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name}</a> ({ts}duplicate{/ts})</th>
<th>{ts}Mark All{/ts}<br />=={$form.toggleSelect.html} ==></th>
- <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name} <em>{$main_contact_subtype}</em></a></th>
+ <th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name}</a></th>
</tr>
{foreach from=$rows item=row key=field}
<tr class="{cycle values="odd-row,even-row"}">
<td>{$row.title}</td>
<td>
- {if !is_array($row.other)}
- {$row.other}
- {else}
- {$row.other.fileName}
- {/if}
+ {if !is_array($row.other)}
+ {$row.other}
+ {elseif $row.other.fileName}
+ {$row.other.fileName}
+ {else}
+ {', '|implode:$row.other}
+ {/if}
</td>
<td style='white-space: nowrap'>{if $form.$field}=={$form.$field.html}==>{/if}</td>
<td>
<span id="main_{$blockName}_{$blockId}">
{if !is_array($row.main)}
{$row.main}
- {else}
+ {elseif $row.main.fileName}
{$row.main.fileName}
+ {else}
+ {', '|implode:$row.main}
{/if}
</span>
</td>