Use 'organization' field for sorting if display name is not set (#3172)
This commit is contained in:
parent
c1b6803ae2
commit
c0129f7768
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ class kolab_storage_cache_contact extends kolab_storage_cache
|
|||
$sql_data['email'] = '';
|
||||
}
|
||||
|
||||
// use organization if name is empty
|
||||
if (empty($sql_data['name']) && !empty($object['organization'])) {
|
||||
$sql_data['name'] = rcube_charset::clean($object['organization']);
|
||||
}
|
||||
|
||||
return $sql_data;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue