Changeset 3ac5cdb in github
- Timestamp:
- Oct 30, 2011 12:33:09 PM (20 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- fda58b1
- Parents:
- 2429cfd
- Location:
- program
- Files:
-
- 2 edited
-
include/rcube_ldap.php (modified) (1 diff)
-
steps/addressbook/func.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_ldap.php
r1937f46 r3ac5cdb 120 120 // support for composite address 121 121 if ($this->fieldmap['street'] && $this->fieldmap['locality']) { 122 $this->coltypes['address'] = array('limit' => max(1, $this->coltypes['locality']['limit']), 'subtypes' => $this->coltypes['locality']['subtypes']); 123 foreach (array('street','locality','zipcode','region','country') as $childcol) 124 unset($this->coltypes[$childcol]); // remove address child col from global coltypes list 122 $this->coltypes['address'] = array('limit' => max(1, $this->coltypes['locality']['limit']), 'subtypes' => $this->coltypes['locality']['subtypes'], 'childs' => array()); 123 foreach (array('street','locality','zipcode','region','country') as $childcol) { 124 if ($this->fieldmap[$childcol]) { 125 $this->coltypes['address']['childs'][$childcol] = array('type' => 'text'); 126 unset($this->coltypes[$childcol]); // remove address child col from global coltypes list 127 } 128 } 125 129 } 126 130 else if ($this->coltypes['address']) -
program/steps/addressbook/func.inc
r7772ae2 r3ac5cdb 141 141 // add associative coltypes definition 142 142 if (!$CONTACTS->coltypes[0]) { 143 foreach ($CONTACTS->coltypes as $col => $colprop) 143 foreach ($CONTACTS->coltypes as $col => $colprop) { 144 if (is_array($colprop['childs'])) { 145 foreach ($colprop['childs'] as $childcol => $childprop) 146 $colprop['childs'][$childcol] = array_merge((array)$CONTACT_COLTYPES[$col]['childs'][$childcol], $childprop); 147 } 144 148 $CONTACT_COLTYPES[$col] = $CONTACT_COLTYPES[$col] ? array_merge($CONTACT_COLTYPES[$col], $colprop) : $colprop; 149 } 145 150 } 146 151 } … … 598 603 $coltypes[$field] += (array)$colprop; 599 604 $coltypes[$field]['count']++; 600 $val = strtr($template, $composite);605 $val = preg_replace('/\{\w+\}/', '', strtr($template, $composite)); 601 606 } 602 607 else if ($edit_mode) {
Note: See TracChangeset
for help on using the changeset viewer.
