summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-10 12:07:40 +0000
committeralecpl <alec@alec.pl>2011-02-10 12:07:40 +0000
commitc4e555c160fbca08457fd178f6031d5bba4a4c16 (patch)
tree480ab9394bf7cdc085ffd948f6735f9657012765
parentde3dde7f2cfb6a11930b9f6588a2a759821f1f4f (diff)
- Fix subtype select labels for fields added with 'Add field'
-rw-r--r--program/steps/addressbook/func.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 3397d3712..336dd44ff 100644
--- a/program/steps/addressbook/func.inc
+++ b/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']) {