From 881a2a5b81c2fef9d2792cb6dc22619391d23b0f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 12 Sep 2010 16:36:24 -0400 Subject: [PATCH] Reset the Kronolith_Event::allday property when receiving event from iCalendar. Value will be redetermined if needed when Kronolith_Event#isAllDay() is called next Bug: 9243 --- kronolith/lib/Event.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index ed70b8e56..b39d401bb 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -878,6 +878,10 @@ abstract class Kronolith_Event } } catch (Horde_Icalendar_Exception $e) {} + // Reset allday flag in case this has changed. Will be recalculated + // next time isAllDay() is called. + $this->allday = false; + // Start and end date. try { $start = $vEvent->getAttribute('DTSTART'); -- 2.11.0