Calendar: Limit number of event occurrences when "checking an itip event in calendar"
This commit is contained in:
parent
8d04cec2f1
commit
d87235e20e
1 changed files with 14 additions and 10 deletions
|
@ -1390,7 +1390,11 @@ class calendar extends rcube_plugin
|
||||||
|
|
||||||
// add recurring instances
|
// add recurring instances
|
||||||
if (!empty($event['recurrence'])) {
|
if (!empty($event['recurrence'])) {
|
||||||
foreach ($this->driver->get_recurring_events($event, $event['start']) as $recurring) {
|
// Some installations can't handle all occurrences (aborting the request w/o an error in log)
|
||||||
|
$end = clone $event['start'];
|
||||||
|
$end->add(new DateInterval($event['recurrence']['FREQ'] == 'DAILY' ? 'P1Y' : 'P10Y'));
|
||||||
|
|
||||||
|
foreach ($this->driver->get_recurring_events($event, $event['start'], $end) as $recurring) {
|
||||||
$recurring['temporary'] = true;
|
$recurring['temporary'] = true;
|
||||||
$recurring['readonly'] = true;
|
$recurring['readonly'] = true;
|
||||||
$recurring['calendar'] = '--invitation--itip';
|
$recurring['calendar'] = '--invitation--itip';
|
||||||
|
|
Loading…
Add table
Reference in a new issue