Force at least one subtype of address to be specified.

Fixes issue where contact address wasn't displayed at all.
pull/20/head
Aleksander Machniak 12 years ago
parent b7c84a1bb8
commit 40b72003fe

@ -142,6 +142,11 @@ class rcube_ldap extends rcube_addressbook
unset($this->coltypes[$childcol]); // remove address child col from global coltypes list
}
}
// at least one address type must be specified
if (empty($this->coltypes['address']['subtypes'])) {
$this->coltypes['address']['subtypes'] = array('home');
}
}
else if ($this->coltypes['address']) {
$this->coltypes['address'] += array('type' => 'textarea', 'childs' => null, 'size' => 40);

Loading…
Cancel
Save