mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed not working address import from FMail under ldap
This commit is contained in:
parent
c2a7644b5e
commit
47d18e092a
@ -792,13 +792,15 @@ error_log("socontacts::search(".print_r($criteria,true).",'$only_keys','$order_b
|
||||
|
||||
/**
|
||||
* gets all contact fields from database
|
||||
*
|
||||
* @return array of (internal) field-names
|
||||
*/
|
||||
function get_contact_columns()
|
||||
{
|
||||
$fields = $this->somain->db_data_cols;
|
||||
$fields = $this->get_fields('all');
|
||||
foreach ((array)$this->customfields as $cfield => $coptions)
|
||||
{
|
||||
$fields['#'.$cfield] = '#'.$cfield;
|
||||
$fields[] = '#'.$cfield;
|
||||
}
|
||||
return $fields;
|
||||
}
|
||||
|
@ -885,7 +885,7 @@ class uicontacts extends bocontacts
|
||||
}
|
||||
$new_type = array_keys($this->content_types);
|
||||
$content['tid'] = $_GET['typeid'] ? $_GET['typeid'] : $new_type[0];
|
||||
foreach($this->get_contact_columns() as $field => $data)
|
||||
foreach($this->get_contact_columns() as $field)
|
||||
{
|
||||
if ($_GET['presets'][$field]) $content[$field] = $_GET['presets'][$field];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user