Send ping command only once when importing multiple evetns (#2355)
This commit is contained in:
parent
e389c314a5
commit
16fc7aef10
1 changed files with 3 additions and 1 deletions
|
@ -393,8 +393,10 @@ class kolab_driver extends calendar_driver
|
|||
|
||||
$success = $storage->insert_event($event);
|
||||
|
||||
if ($success && $this->freebusy_trigger)
|
||||
if ($success && $this->freebusy_trigger) {
|
||||
$this->rc->output->command('plugin.ping_url', array('action' => 'calendar/push-freebusy', 'source' => $storage->id));
|
||||
$this->freebusy_trigger = false; // disable after first execution (#2355)
|
||||
}
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue