forked from extern/egroupware
Fix occurrence count for recurring events again :-(
This commit is contained in:
parent
807b72aa93
commit
da35c68b97
@ -895,7 +895,7 @@ class calendar_sif extends calendar_boupdate
|
||||
{
|
||||
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__.
|
||||
"($_id, $recur_date) Unsupported status only exception, skipped ...\n",
|
||||
3,$this->logfile);
|
||||
3, $this->logfile);
|
||||
}
|
||||
return false; // unsupported pseudo exception
|
||||
}
|
||||
@ -936,7 +936,6 @@ class calendar_sif extends calendar_boupdate
|
||||
if ($day <= $event['start']) unset($exceptions[$key]);
|
||||
}
|
||||
$event['recur_exception'] = $exceptions;
|
||||
calendar_rrule::rrule2tz($event, $event['start'], $tzid);
|
||||
}
|
||||
|
||||
if ($this->uidExtension)
|
||||
@ -990,6 +989,11 @@ class calendar_sif extends calendar_boupdate
|
||||
{
|
||||
$occurrences++;
|
||||
$recur_date = $rriter->current();
|
||||
if ($this->log)
|
||||
{
|
||||
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__.
|
||||
"() Client Recurrence[$occurrences] $recur_date\n", 3, $this->logfile);
|
||||
}
|
||||
if (!$rriter->exceptions || !in_array($recur_date->format('Ymd'),$rriter->exceptions))
|
||||
{
|
||||
$recur_end = $recur_date;
|
||||
@ -1001,6 +1005,8 @@ class calendar_sif extends calendar_boupdate
|
||||
$sifEvent .= '<PatternEndDate>'. self::getDateTime($recurEndDate,$tzid) .'</PatternEndDate>';
|
||||
}
|
||||
|
||||
calendar_rrule::rrule2tz($event, $event['start'], $tzid);
|
||||
|
||||
$eventInterval = ($event['recur_interval'] > 1 ? $event['recur_interval'] : 1);
|
||||
|
||||
switch ($event['recur_type'])
|
||||
|
Loading…
Reference in New Issue
Block a user