From 2bbd3826e24753a175939f3cbb3aceb50809a09b Mon Sep 17 00:00:00 2001 From: Len Date: Tue, 4 Dec 2018 23:48:15 -0500 Subject: [PATCH] Update directory.xml (#3908) --- .../provision/yealink/w56p/directory.xml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/resources/templates/provision/yealink/w56p/directory.xml b/resources/templates/provision/yealink/w56p/directory.xml index 5959cc4b54..085b2a191f 100644 --- a/resources/templates/provision/yealink/w56p/directory.xml +++ b/resources/templates/provision/yealink/w56p/directory.xml @@ -3,6 +3,11 @@ {if $smarty.get.contacts == "users" && $row.category == "users"} {if $row.contact_name_given != ""} + {if $row.contact_organization != ""} + {$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family} + {else} + {$row.contact_name_given} {$row.contact_name_family} + {/if} {$row.contact_name_given} {$row.contact_name_family} {else} {$row.effective_caller_id_name} @@ -19,7 +24,11 @@ {elseif $smarty.get.contacts == "groups" && $row.category == "groups"} {if $row.contact_name_given != ""} - {$row.contact_name_given} {$row.contact_name_family} + {if $row.contact_organization != ""} + {$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family} + {else} + {$row.contact_name_given} {$row.contact_name_family} + {/if} {else} {$row.effective_caller_id_name} {/if} @@ -48,7 +57,11 @@ {elseif $smarty.get.contacts == "all"} {if $row.contact_name_given != ""} - {$row.contact_name_given} {$row.contact_name_family} + {if $row.contact_organization != ""} + {$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family} + {else} + {$row.contact_name_given} {$row.contact_name_family} + {/if} {else} {$row.effective_caller_id_name} {/if}