* Addressbook - Fix tel_prefer statustext to be translated field label instead of field name

This commit is contained in:
nathangray 2017-08-14 11:22:46 -06:00
parent 258a739f54
commit ab8ab5f330
2 changed files with 6 additions and 1 deletions

View File

@ -1843,6 +1843,11 @@ window.egw_LAB.wait(function() {
{
$row['tel_prefered'] = $row[$row['tel_prefer']].$prefer_marker;
}
// Show nice name as status text
if($row['tel_prefer'])
{
$row['tel_prefer_label'] = $this->contact_fields[$row['tel_prefer']];
}
if (!$row['owner'] && $row['account_id'] > 0)
{
$row['class'] .= 'rowAccount rowNoDelete ';

View File

@ -142,7 +142,7 @@
<url-phone id="${row}[tel_cell]" readonly="true" class="telNumbers" statustext="Mobile phone"/>
<url-phone id="${row}[tel_home]" readonly="true" class="telNumbers" statustext="Home phone"/>
<url-phone id="${row}[tel_fax]" readonly="true" statustext="Fax"/>
<url-phone id="${row}[tel_prefered]" readonly="true" class="telNumbers" statustext="$row_cont[tel_prefer]"/>
<url-phone id="${row}[tel_prefered]" readonly="true" class="telNumbers" statustext="$row_cont[tel_prefer_label]"/>
</vbox>
<vbox>
<url id="${row}[url]" readonly="true" class="fixedHeight"/>