plugins/calendar

Thomas Brüderli bruederli at kolabsys.com
Wed Oct 16 09:39:16 CEST 2013


 plugins/calendar/drivers/kolab/kolab_driver.php |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 16fc7aef10c9cde3e326319652fb3893d26d7480
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Wed Oct 16 09:38:48 2013 +0200

    Send ping command only once when importing multiple evetns (#2355)

diff --git a/plugins/calendar/drivers/kolab/kolab_driver.php b/plugins/calendar/drivers/kolab/kolab_driver.php
index 019b8b7..9098bfd 100644
--- a/plugins/calendar/drivers/kolab/kolab_driver.php
+++ b/plugins/calendar/drivers/kolab/kolab_driver.php
@@ -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;
     }




More information about the commits mailing list