forked from extern/egroupware
Fix selection of fieldnames when using ldap (key=>value of stock fields mixup)
This commit is contained in:
parent
43f048acca
commit
d2b5ae466b
@ -497,8 +497,9 @@
|
||||
// and we don't want $buffer['BEGIN'] etc...
|
||||
$contacts = CreateObject('phpgwapi.contacts');
|
||||
while (list($fname,$fvalue) = each($contacts->stock_contact_fields)) {
|
||||
if($buffer[$fvalue]) {
|
||||
$entry[$fvalue] = $buffer[$fvalue];
|
||||
if($buffer[$fname]) {
|
||||
$entry[$fname] = $buffer[$fname];
|
||||
//echo '<br>'.$fname.' = "'.$entry[$fname].'"'."\n";
|
||||
}
|
||||
}
|
||||
return $entry;
|
||||
|
Loading…
Reference in New Issue
Block a user