* 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 e4ad4aab48
commit abc73dab2b
2 changed files with 6 additions and 1 deletions

View File

@ -1740,6 +1740,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"/>