[Tickets #9651] wrong parameter passed

bugs at horde.org bugs at horde.org
Thu Mar 10 15:51:52 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/9651
------------------------------------------------------------------------------
  Ticket           | 9651
  Erstellt Von     | d-fens at 00010111.de
  Zusammenfassung  | wrong parameter passed
  Warteschlange    | Kronolith
  Version          | Git master
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 1. Low
  Milestone        |
  Patch            | 1
  Zuständige       |
------------------------------------------------------------------------------


d-fens at 00010111.de (2011-03-10 15:51) hat geschrieben:

hi,

getting all events doesn't work, must pass null


commit f62d401c1484270c1466d320dde9c93e1b26438a
Author: Simon Bühler <simon at aktionspotenzial.de> 2011-03-10 16:49:55
Committer: Simon Bühler <simon at aktionspotenzial.de> 2011-03-10 16:49:55
Parent: 81d226501bdce3d560da15de3e3f11944bcfc429 (Need to pass 'id' here too.)
Branches: master

fix expected parameter for method call

---------------------------- kronolith/lib/Api.php  
----------------------------
diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php
index 3959579..2607838 100644
--- a/kronolith/lib/Api.php
+++ b/kronolith/lib/Api.php
@@ -458,10 +458,12 @@
              Kronolith::listInternalCalendars(false, Horde_Perms::READ))) {
              throw new Horde_Exception_PermissionDenied();
          }
+
+

          $events = Kronolith::getDriver(null, $calendar)
-            ->listEvents(new Horde_Date($startstamp),
-                         new Horde_Date($endstamp),
+            ->listEvents(($startstamp == 0 ) ? null : new  
Horde_Date($startstamp),
+                         ($endstamp == 0 ) ? null : new  
Horde_Date($endstamp),
                           false,  // recurrence
                           false,  // alarm
                           false,  // no json cache







More information about the bugs mailing list