You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
An error similar to the one described in #8782 and fixed in 03d2a8b appears when using an eventlist where cal_format is set to month (applies to the setting day as well.)
But as far as I can tell the source of the error lies somewhere completely different therefore I opened this new issue.
Steps to reproduce:
create a multi-day event stretching from 2017-08-15 to 2017-11-22
create a list module with cal_format set to month and the option shortened_view set to disabled
include the list module on a page and load that page with the get parameter ?month=201709
Expected result:
show all dates from the month of September (2017-09-01 to 2017-09-30)
Actual result:
all dates from the start of the event (2017-08-15) until the end of September are shown (see also screenshot)
I think I also found the source of the error:
In the function addEvent in Events.php events are added by using the $intStart variable on lines 213 - 218.
In a multi-day event this always seems to be the date of the first day of the event.
I experimented with using $intBegin instead by adding $intStart = $intBegin; above line 213 and got the desired result:
Only dates from September are shown.
I am not sure if you can simply replace $intStart with $intBegin because I have not checked the implications if the list module is configured differently than in the case described here.
The text was updated successfully, but these errors were encountered:
An error similar to the one described in #8782 and fixed in 03d2a8b appears when using an eventlist where
cal_formatis set tomonth(applies to the settingdayas well.)But as far as I can tell the source of the error lies somewhere completely different therefore I opened this new issue.
Steps to reproduce:
cal_formatset tomonthand the optionshortened_viewset to disabled?month=201709Expected result:
Actual result:
I think I also found the source of the error:
In the function
addEventinEvents.phpevents are added by using the$intStartvariable on lines 213 - 218.In a multi-day event this always seems to be the date of the first day of the event.
I experimented with using
$intBegininstead by adding$intStart = $intBegin;above line 213 and got the desired result:Only dates from September are shown.
I am not sure if you can simply replace
$intStartwith$intBeginbecause I have not checked the implications if the list module is configured differently than in the case described here.The text was updated successfully, but these errors were encountered: