Use 'organization' field for sorting if display name is not set (#3172)

This commit is contained in:
Aleksander Machniak 2015-02-24 12:51:00 -05:00
parent c1b6803ae2
commit c0129f7768

View file

@ -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;
}
}