craigh / PostCalendar

PostCalendar is a calendar module for the Zikula Application Framework
20 stars 9 forks source link

PostCalendar (8.0.2), Calendar Block, recurring Events and sort order problems #103

Open 42Stuff opened 9 years ago

42Stuff commented 9 years ago

Zikula 1.3.9

So far this is the behaviour I experience when using recurring Events. While testing out a number of entries, I also came across a sort order issue. All of these apply to the Block only, not the Module itself

The Block is configured to only show today's Events.

If I create a recurring Event, the URL Link for the item given in the Block is incorrect. Commonly, it tends to show the last of the recurring Events, not the entry for today. It changes (still incorrect) if the last recurring Event day is changed. It is correct in the Link in the Module display (Month View for example).

To replicate the process I used is very straightforward. Create a Block set to display only today's Events.

Create an Event, recurring every week with the last day whatever you want. I have tried 1 month, 3 months, 2 weeks, and a year.

Examine the Link shown in the Block.

In every case, the Link that is given in the Block is incorrect, i.e. it is a day other than today, and the most consistent seems to be the last day of the recurring Event, though that is not exclusive. It can be others, particularly if the length of the recurrence is long.

Regarding the sort order (in the Block) it should be in chronological order? However, if I create an Event which is later in the day than any already created, it is listed in the Block before them, i.e. an Event timed to start at 17:00 can appear before an Event scheduled at 08:00.

I am not sure if this is enough information or clear enough. I haven't tried every permutation. If you need more do not hesitate to post or contact me. I would be quite happy to provide you with access to the site (Admin if necessary) I am working on if that would help you diagnose and resolve. On this Site, the Block is fundamental/essential.

There is a workaround, which is to only create single Events. In this case, that is much more time consuming, and frustrating as recurring Events is perfect for the job. The sort order problem can also cause more work as when it happens, it can require re-entering all the current day's Events in the correct order, and that might not always be practicable, especially when the scope of the Calendar is widened to accept user submissions, and I am a way off that level yet.

Cheers.

craigh commented 9 years ago

Thank you for the thorough report. I've not truly worked on PC for a long time, because I am currently working heavily on the core and zikula.org. It may be some time before I am able to truly spend time working on this project again.

If you are capable of fixing the code, please let me know and we can integrate fixes.

42Stuff commented 9 years ago

I understand. My capabilities are very limited in this environment. Pity it's not VB .NET ;) Just kidding. If I find I can do something useful (not optimistic) I'll let you know. I'm sure you will get on the case when practicable.