mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
Fix wrong classification in get_event_info() and UID handling for CalDAV
This commit is contained in:
parent
adf9a0917f
commit
65c06844e5
@ -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'])
|
||||
{
|
||||
|
@ -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))))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user