mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fill displayname for contacts and task to easier identify it in autoindex
This commit is contained in:
parent
1dd3a9e083
commit
1f93855172
@ -183,7 +183,7 @@ class addressbook_groupdav extends groupdav_handler
|
|||||||
}
|
}
|
||||||
$files = array();
|
$files = array();
|
||||||
// we query etag and modified, as LDAP does not have the strong sql etag
|
// we query etag and modified, as LDAP does not have the strong sql etag
|
||||||
$cols = array('id','uid','etag','modified');
|
$cols = array('id','uid','etag','modified','n_fn');
|
||||||
if (!in_array(self::$path_attr,$cols)) $cols[] = self::$path_attr;
|
if (!in_array(self::$path_attr,$cols)) $cols[] = self::$path_attr;
|
||||||
if (($contacts =& $this->bo->search(array(),$cols,$order,'','',False,'AND',$start,$filter)))
|
if (($contacts =& $this->bo->search(array(),$cols,$order,'','',False,'AND',$start,$filter)))
|
||||||
{
|
{
|
||||||
@ -191,6 +191,8 @@ class addressbook_groupdav extends groupdav_handler
|
|||||||
{
|
{
|
||||||
$props = array(
|
$props = array(
|
||||||
'getcontenttype' => HTTP_WebDAV_Server::mkprop('getcontenttype', 'text/vcard'),
|
'getcontenttype' => HTTP_WebDAV_Server::mkprop('getcontenttype', 'text/vcard'),
|
||||||
|
'getlastmodified' => $contact['modified'],
|
||||||
|
'displayname' => $contact['n_fn'],
|
||||||
);
|
);
|
||||||
if ($address_data)
|
if ($address_data)
|
||||||
{
|
{
|
||||||
|
@ -212,7 +212,7 @@ class infolog_groupdav extends groupdav_handler
|
|||||||
|
|
||||||
if (!$calendar_data)
|
if (!$calendar_data)
|
||||||
{
|
{
|
||||||
$query['cols'] = array('info_id', 'info_datemodified', 'info_uid', 'caldav_name');
|
$query['cols'] = array('info_id', 'info_datemodified', 'info_uid', 'caldav_name', 'info_subject');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($start))
|
if (is_array($start))
|
||||||
@ -235,6 +235,7 @@ class infolog_groupdav extends groupdav_handler
|
|||||||
$props = array(
|
$props = array(
|
||||||
'getcontenttype' => $this->agent != 'kde' ? 'text/calendar; charset=utf-8; component=VTODO' : 'text/calendar', // Konqueror (3.5) dont understand it otherwise
|
'getcontenttype' => $this->agent != 'kde' ? 'text/calendar; charset=utf-8; component=VTODO' : 'text/calendar', // Konqueror (3.5) dont understand it otherwise
|
||||||
'getlastmodified' => $task['info_datemodified'],
|
'getlastmodified' => $task['info_datemodified'],
|
||||||
|
'displayname' => $task['info_subject'],
|
||||||
);
|
);
|
||||||
if ($calendar_data)
|
if ($calendar_data)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user