Update directory.xml (#3924)

This commit is contained in:
Len 2018-12-04 23:40:49 -05:00 committed by FusionPBX
parent f92ea22d9e
commit dba1ad00d9
1 changed files with 16 additions and 3 deletions

View File

@ -3,6 +3,11 @@
{if $smarty.get.contacts == "users" && $row.category == "users"} {if $smarty.get.contacts == "users" && $row.category == "users"}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
{if $row.contact_organization != ""}
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{/if}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> <Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{else} {else}
<Name>{$row.effective_caller_id_name}</Name> <Name>{$row.effective_caller_id_name}</Name>
@ -19,7 +24,11 @@
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"} {elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> {if $row.contact_organization != ""}
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{/if}
{else} {else}
<Name>{$row.effective_caller_id_name}</Name> <Name>{$row.effective_caller_id_name}</Name>
{/if} {/if}
@ -48,7 +57,11 @@
{elseif $smarty.get.contacts == "all"} {elseif $smarty.get.contacts == "all"}
<DirectoryEntry> <DirectoryEntry>
{if $row.contact_name_given != ""} {if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name> {if $row.contact_organization != ""}
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{/if}
{else} {else}
<Name>{$row.effective_caller_id_name}</Name> <Name>{$row.effective_caller_id_name}</Name>
{/if} {/if}