Always add a recurrence-id so a client can tell this repeats.

If the recurrence-id is missing the client can't provide an indication
that this is a repeating event.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Andrew McMillan 2011-01-05 09:10:47 +13:00
parent 71b1aa3d21
commit ca6668c608

View File

@ -1071,8 +1071,7 @@ function expand_event_instances( $vResource, $range_start = null, $range_end = n
$component->ClearProperties( array('DTSTART'=> true, 'DUE' => true, 'DTEND' => true,
'RRULE' => true, 'RDATE' => true, 'EXDATE' => true) );
$component->AddProperty('DTSTART', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
if ( $utc != $dtstart->FloatOrUTC() )
$component->AddProperty('RECURRENCE-ID', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
$component->AddProperty('RECURRENCE-ID', $utc, ($is_date ? array('VALUE' => 'DATE') : null) );
$component->AddProperty('DURATION', $duration );
$new_components[] = $component;
}