Fix wrong classification in get_event_info() and UID handling for CalDAV

This commit is contained in:
Jörg Lehrke 2010-02-11 20:50:35 +00:00
parent adf9a0917f
commit 65c06844e5
2 changed files with 27 additions and 22 deletions

View File

@ -1470,8 +1470,9 @@ class calendar_boupdate extends calendar_bo
'()[FOUND]:' . array2string($egwEvent));
}
// Just a simple consistency check
if ($filter == 'master' && $egwEvent['recur_type'] != MCAL_RECUR_NONE ||
$filter == 'exact' || strpos($egwEvent['title'], $event['title']) === 0)
if ($filter == 'exact' ||
$filter == 'master' && $egwEvent['recur_type'] != MCAL_RECUR_NONE ||
$filter != 'master' && strpos($egwEvent['title'], $event['title']) === 0)
{
$retval = $egwEvent['id'];
if ($egwEvent['recur_type'] != MCAL_RECUR_NONE &&
@ -1543,7 +1544,7 @@ class calendar_boupdate extends calendar_bo
}
}
}
if ($filter != 'master')
if ($filter != 'master' && $filter != 'exact' )
{
if (isset($event['whole_day']) && $event['whole_day'])
{

View File

@ -416,6 +416,10 @@ class calendar_groupdav extends groupdav_handler
return $event;
}
$handler = $this->_get_handler();
if (!is_numeric($id) && ($foundEntries = $handler->find_event($options['content'], 'check')))
{
$id = array_shift($foundEntries);
}
if (!($cal_id = $handler->importVCal($options['content'],is_numeric($id) ? $id : -1,
self::etag2value($this->http_if_match))))
{