diff --git a/resources/templates/provision/htek/uc923/phonebook.xml b/resources/templates/provision/htek/uc923/phonebook.xml index 6ae5e2a7c0..526b0fe0c3 100644 --- a/resources/templates/provision/htek/uc923/phonebook.xml +++ b/resources/templates/provision/htek/uc923/phonebook.xml @@ -1,7 +1,7 @@ {foreach $contacts as $row} -{if $smarty.get.contacts == "users" && $row.category == "users"} +{if $row.category == "users"} {if $row.contact_name_given != ""} {$row.contact_name_given} {$row.contact_name_family} @@ -17,7 +17,7 @@ {/if} {/foreach} -{elseif $smarty.get.contacts == "groups" && $row.category == "groups"} +{elseif $row.category == "groups"} {if $row.contact_name_given != ""} {$row.contact_name_given} {$row.contact_name_family} @@ -33,7 +33,7 @@ {/if} {/foreach} -{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"} +{elseif $row.category == "extensions"} {if $row.contact_name_given != ""} {$row.contact_name_given} {$row.contact_name_family} @@ -46,7 +46,7 @@ {$row.phone_extension} {/if} -{elseif $smarty.get.contacts == "all"} +{else} {if $row.contact_name_given != ""} {$row.contact_name_given} {$row.contact_name_family}