[kronolith] Events longer than one day do not display correctly when they have recurrence

Pascal Rigaux pascal.rigaux at univ-paris1.fr
Tue May 24 08:30:40 UTC 2016


Hi,

I was looking at issue https://bugs.horde.org/ticket/4438 :
In kronolith dynamic view, events longer than one day do not display correctly when they have recurrence.

I know the issue "Recurring events overlapping days incorrectly shown" is complex
( https://bugs.horde.org/ticket/12488 )

But I still think a cleanup could fix the weekly dynamic view on non overlapping events:

Kronolith::addEvents() with $covertDates:

- for recurring events : uses Kronolith::addCoverDates()

- for non recurring events : uses code similar toKronolith::addCoverDates(),
   but for days in between the start and end day, the range is midnight to midnight,
   and for the edge days it's start to midnight, and midnight to end.

I see no reason why recurring events should return a different kind of value.
This breaks badly the display in dynamic view (cf screenshot).
(NB: non dynamic view works correctly)

The following patch ensures recurring and non recurring events are treated equally:
https://github.com/prigaux/horde/commit/926601bd7a7b5527262ee0f74ac3b4c4b95f99c6

This fixes weekly dynamic view.

WYT?

cu

-- 
Pascal Rigaux

-------------- next part --------------
A non-text attachment was scrubbed...
Name: recurring-event-spanning-midnight.png
Type: image/png
Size: 6599 bytes
Desc: not available
URL: <https://lists.horde.org/archives/kronolith/attachments/20160524/f32c4d93/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: recurring-event-spanning-midnight-fixed.png
Type: image/png
Size: 8266 bytes
Desc: not available
URL: <https://lists.horde.org/archives/kronolith/attachments/20160524/f32c4d93/attachment-0003.png>


More information about the kronolith mailing list