Changeset 6139 in subversion


Ignore:
Timestamp:
May 2, 2012 5:25:47 PM (13 months ago)
Author:
thomasb
Message:

Fix handling of 'serialzied' LDAP address attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r6138 r6139  
    144144        } 
    145145        else if ($this->coltypes['address']) { 
    146             $this->coltypes['address'] = array('type' => 'textarea', 'childs' => null, 'limit' => 1, 'size' => 40); 
     146            $this->coltypes['address'] += array('type' => 'textarea', 'childs' => null, 'size' => 40); 
     147 
     148            // 'serialized' means the UI has to present a composite address field 
     149            if ($this->coltypes['address']['serialized']) { 
     150                $childprop = array('type' => 'text'); 
     151                $this->coltypes['address']['type'] = 'composite'; 
     152                $this->coltypes['address']['childs'] = array('street' => $childprop, 'locality' => $childprop, 'zipcode' => $childprop, 'country' => $childprop); 
     153            } 
    147154        } 
    148155 
Note: See TracChangeset for help on using the changeset viewer.