-
Bug
-
Resolution: Duplicate
-
Minor
-
2.0.0
-
None
-
None
We will take as an example an event starting the 1st of april and ending the 1st of may (no hours filled, so 00h00).
Two different things on the calendar :
- datepicker plugin, that takes into account this event on the 1st of may (so we can click on the first of may to show the event)
- the "all-news" template that create a div for all the news, testing each event this way :
<xsl:for-each select="/events/months/month">
<xsl:if test="/events/contents/event[event:inMonth(current()/@raw, content/metadata/start-date, content/metadata/end-date)]">
....
The event:InMonth uses [org|eclipse-javadoc:%E2%98%82=AggloValence_cms/%5C/media%5C/jon%5C/Projets%5C/Projets%5C/Anyware%5C/ivyrep_v4%5C/cache%5C/joda-time%5C/joda-time%5C/jars%5C/joda-time-2.8.2.jar%3Corg].[joda|eclipse-javadoc:%E2%98%82=AggloValence_cms/%5C/media%5C/jon%5C/Projets%5C/Projets%5C/Anyware%5C/ivyrep_v4%5C/cache%5C/joda-time%5C/joda-time%5C/jars%5C/joda-time-2.8.2.jar%3Corg.joda].[time|eclipse-javadoc:%E2%98%82=AggloValence_cms/%5C/media%5C/jon%5C/Projets%5C/Projets%5C/Anyware%5C/ivyrep_v4%5C/cache%5C/joda-time%5C/joda-time%5C/jars%5C/joda-time-2.8.2.jar%3Corg.joda.time].Interval.overlaps to know if the event overlaps the month tested. As the interval is "exclusive of the end", this event (ending on 1st may 00h00) does not belong to the may month (starting on 1st may 00h00).
So, when we want to show this kind of event, we can't get the content as the all-news template has not created it.