From fbf5586ce3e56f5e3a522a15da692e8b127d4f51 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 17 Nov 2008 16:31:59 +0000 Subject: [PATCH] "fixed bug reported by Peter Goerzen: UID was not exported (which caused some automatic uid-generation in horde to kick in and messes up CalDAV/GroupDAV)" --- calendar/inc/class.calendar_ical.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index a95663930f..d666f6e0bd 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -439,7 +439,7 @@ class calendar_ical extends calendar_boupdate } } - //$attributes['UID'] = $event['uid']; + $attributes['UID'] = $event['uid']; foreach($attributes as $key => $value) { foreach(is_array($value)&&$parameters[$key]['VALUE']!='DATE' ? $value : array($value) as $valueID => $valueData) @@ -489,7 +489,7 @@ class calendar_ical extends calendar_boupdate } $version = $vcal->getAttribute('VERSION'); - + if(!is_array($this->supportedFields)) { $this->setSupportedFields(); @@ -1408,7 +1408,7 @@ class calendar_ical extends calendar_boupdate { error_log ("unset weak uid"); unset ($event['uid']); - } + } break; case 'TRANSP': $vcardData['non_blocking'] = $attributes['value'] == 'TRANSPARENT';