Fix fb generation for resources
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Jan 2011 01:34:15 +0000 (20:34 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Jan 2011 01:43:02 +0000 (20:43 -0500)
kronolith/lib/Resource/Single.php

index 2ac8f04..febc451 100644 (file)
@@ -118,7 +118,7 @@ class Kronolith_Resource_Single extends Kronolith_Resource_Base
      */
     public function getFreeBusy($startstamp = null, $endstamp = null, $asObject = false)
     {
-        $vfb = Kronolith_Freebusy::generate($this->get('calendar'), $startstamp, $endstamp, $asObject);
+        $vfb = Kronolith_Freebusy::generate('resource_' . $this->get('calendar'), $startstamp, $endstamp, $asObject);
         $vfb->removeAttribute('ORGANIZER');
         $vfb->setAttribute('ORGANIZER', $this->get('name'));