Skip to content

Commit

Permalink
Fixed Renaming Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ksainc committed Oct 19, 2023
1 parent d2af755 commit 841eaba
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions lib/Resources/Contacts/Grandstream.tpl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<AddressBook>
{{ section reiterate start }}
{% if(isset($dido)): %}
{% if(isset($data)): %}

<Contact>
<LastName>{{ $dido->Name->Last }}</LastName>
<FirstName>{{ $dido->Name->First }}</FirstName>
<LastName>{{ $data->Name->Last }}</LastName>
<FirstName>{{ $data->Name->First }}</FirstName>
<Primary>0</Primary>
{% foreach ($dido->Phone as $entry): %}
{% foreach ($data->Phone as $entry): %}
{% if($entry->Type == 'WORK' && $entry->SubType == 'VOICE' && !empty($entry->Number)): %}
<Phone type="Work">
<phonenumber>{{ $entry->Number }}</phonenumber>
Expand Down
10 changes: 5 additions & 5 deletions lib/Resources/Contacts/Polycom5x.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<directory>
<item_list>
{{ section reiterate start }}
{% if(isset($dido)): %}
{% if(isset($data)): %}
<item>
<ln>{{ $dido->Name->First }}</ln>
<fn>{{ $dido->Name->Last }}</fn>
<ln>{{ $dido->Occupation->Organization }}</ln>
{% foreach ($dido->Phone as $entry): %}
<ln>{{ $data->Name->First }}</ln>
<fn>{{ $data->Name->Last }}</fn>
<ln>{{ $data->Occupation->Organization }}</ln>
{% foreach ($data->Phone as $entry): %}
{% if($entry->Type == 'WORK' && $entry->SubType == 'VOICE' && !empty($entry->Number)): %}
<ct>{{ $entry->Number }}</ct>
{% elseif($entry->Type == 'CELL' && !empty($entry->Number)): %}
Expand Down
20 changes: 10 additions & 10 deletions lib/Resources/Contacts/SnomV2.tpl
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<tbook complete="true" e="2" version="2.0">
{{ section reiterate start }}
{% if(isset($dido)): %}
{% if(isset($data)): %}
<contact fav="false" vip="false" blocked="false">
<first_name>{{ $dido->Name->First }}</first_name>
<last_name>{{ $dido->Name->Last }}</last_name>
<nick_name>{{ $dido->Name->Aliases }}</nick_name>
<title>{{ $dido->Occupation->Title }}</title>
<organization>{{ $dido->Occupation->Organization }}</organization>
{% if(count($dido->Email) > 0): %}
<email>{{ $dido->Email[0]->Address }}</email>
<first_name>{{ $data->Name->First }}</first_name>
<last_name>{{ $data->Name->Last }}</last_name>
<nick_name>{{ $data->Name->Aliases }}</nick_name>
<title>{{ $data->Occupation->Title }}</title>
<organization>{{ $data->Occupation->Organization }}</organization>
{% if(count($data->Email) > 0): %}
<email>{{ $data->Email[0]->Address }}</email>
{% else: %}
<email></email>
{% endif; %}
<note>{{ $dido->Notes }}</note>
<note>{{ $data->Notes }}</note>
<group></group>
<source_id>2</source_id>
<photo></photo>
<numbers>
{% foreach ($dido->Phone as $entry): %}
{% foreach ($data->Phone as $entry): %}
{% if($entry->Type == 'WORK' && $entry->SubType == 'VOICE' && !empty($entry->Number)): %}
<number no="{{ $entry->Number }}" type="business" outgoing_id="0"></number>
{% elseif($entry->Type == 'HOME' && $entry->SubType == 'VOICE' && !empty($entry->Number)): %}
Expand Down
6 changes: 3 additions & 3 deletions lib/Resources/Contacts/Yealink.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<YealinkIPPhoneDirectory>
{{ section reiterate start }}
{% if(isset($dido)): %}
{% if(isset($data)): %}
<DirectoryEntry >
<Name>{{ $dido->Name->First }}</Name>
{% foreach ($dido->Phone as $entry): %}
<Name>{{ $data->Name->First }}</Name>
{% foreach ($data->Phone as $entry): %}
{% if(!empty($entry->Number)): %}
<Telephone label="{{ $entry->Type }} {{ $entry->SubType }}">{{ $entry->Number }}</Telephone>
{% endif; %}
Expand Down
14 changes: 7 additions & 7 deletions lib/Resources/Contacts/Zoiper5x.tpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Contacts>
{{ section reiterate start }}
{% if(isset($dido)): %}
{% if(isset($data)): %}
<Contact id="123">
<Name>
<First>{{ $dido->Name->First }}</First>
<Middle>{{ $dido->Name->Other }}</Middle>
<Last>{{ $dido->Name->Last }}</Last>
<Display>{{ $dido->Name->Label }}</Display>
<First>{{ $data->Name->First }}</First>
<Middle>{{ $data->Name->Other }}</Middle>
<Last>{{ $data->Name->Last }}</Last>
<Display>{{ $data->Name->Label }}</Display>
</Name>
<Info>
<Company>{{ $dido->Occupation->Organization }}</Company>
<Company>{{ $data->Occupation->Organization }}</Company>
</Info>
{% foreach ($dido->Phone as $entry): %}
{% foreach ($data->Phone as $entry): %}
{% if(!empty($entry->Number)): %}
<Phone>
{% if($entry->Type == 'WORK' && $entry->SubType == 'VOICE'): %}
Expand Down

0 comments on commit 841eaba

Please sign in to comment.