|
|
|
@ -171,12 +171,14 @@ class rcube_ldap extends rcube_addressbook
|
|
|
|
|
$this->coltypes['address'] = array(
|
|
|
|
|
'limit' => max(1, $this->coltypes['locality']['limit'] + $this->coltypes['address']['limit']),
|
|
|
|
|
'subtypes' => array_merge((array)$this->coltypes['address']['subtypes'], (array)$this->coltypes['locality']['subtypes']),
|
|
|
|
|
'childs' => array(),
|
|
|
|
|
'childs' => array(),
|
|
|
|
|
'attributes' => array(),
|
|
|
|
|
) + (array)$this->coltypes['address'];
|
|
|
|
|
|
|
|
|
|
foreach (array('street','locality','zipcode','region','country') as $childcol) {
|
|
|
|
|
if ($this->coltypes[$childcol]) {
|
|
|
|
|
$this->coltypes['address']['childs'][$childcol] = array('type' => 'text');
|
|
|
|
|
$this->coltypes['address']['attributes'] = array_merge($this->coltypes['address']['attributes'], $this->coltypes[$childcol]['attributes']);
|
|
|
|
|
unset($this->coltypes[$childcol]); // remove address child col from global coltypes list
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|