Fix updating events from the day view.
authorJan Schneider <jan@horde.org>
Wed, 24 Mar 2010 18:24:18 +0000 (19:24 +0100)
committerJan Schneider <jan@horde.org>
Wed, 24 Mar 2010 18:24:18 +0000 (19:24 +0100)
kronolith/lib/Ajax/Application.php

index dc939f4..71d16ad 100644 (file)
@@ -788,10 +788,12 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base
         $result = $this->_signedResponse($event->calendarType . '|' . $event->calendar);
         try {
             $event->save();
+            $end = new Horde_Date($this->_vars->view_end);
+            $end->hour = 23;
+            $end->min = $end->sec = 59;
             Kronolith::addEvents($events, $event,
                                  new Horde_Date($this->_vars->view_start),
-                                 new Horde_Date($this->_vars->view_end),
-                                 true, true);
+                                 $end, true, true);
             if (count($events)) {
                 $result->events = $events;
             }