diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-10 12:07:40 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-10 12:07:40 +0000 |
| commit | 5c323972b48f12921675f553e5e1501c334bb729 (patch) | |
| tree | 58c117d4b1cca1ab6c4766fa5c8ac677efcbb65d | |
| parent | 3b3c3a4b452e248170f7a521367c5d759434afa4 (diff) | |
- Fix subtype select labels for fields added with 'Add field'
git-svn-id: https://svn.roundcube.net/trunk@4527 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/addressbook/func.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc index 3397d3712..336dd44ff 100644 --- a/roundcubemail/program/steps/addressbook/func.inc +++ b/roundcubemail/program/steps/addressbook/func.inc @@ -324,8 +324,9 @@ function rcmail_contact_form($form, $record, $attrib = null) foreach ($coltypes as $col => $prop) { if ($prop['subtypes']) { + $subtype_names = array_map('rcmail_get_type_label', $prop['subtypes']); $select_subtype = new html_select(array('name' => '_subtype_'.$col.'[]', 'class' => 'contactselectsubtype')); - $select_subtype->add($prop['subtypes']); + $select_subtype->add($subtype_names, $prop['subtypes']); $coltypes[$col]['subtypes_select'] = $select_subtype->show(); } if ($prop['childs']) { |
