Aleksander Machniak
2012-08-16 40b72003fe3abd8c327476fa58dbb2a84c271281
Force at least one subtype of address to be specified.
Fixes issue where contact address wasn't displayed at all.
1 files modified
5 ■■■■■ changed files
program/include/rcube_ldap.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_ldap.php
@@ -142,6 +142,11 @@
                    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);