Page 1 of 1

Events in Month view don't change going Month to Month

PostPosted: Thu Jun 03, 2010 3:34 am
by Rodney Dawson
This issue just occurred in month view with May going into June.

You have appointments in May and you're looking at May in month view.

You click on a date in the first week of June (say June 2nd) from the side calendars (Ninja Cal), where there is overlap between months (end of May / beginning of June). The calendar dates change but the events from May remain displayed.

If, however, you navigate from May to June using the Next Month button in the header, everything works as it should.

PostPosted: Thu Jun 03, 2010 6:37 am
by John Sindelar
LOL. Yea. Don't know how we missed that! Should be easy to fix I'll post something later this morning.

PostPosted: Thu Jun 03, 2010 8:33 am
by John Sindelar
OK. Edit the script "Date Specific ( Date )" and change the calc in the first IF() statement to this:
Code: Select all
If (
    $$sc_Mode = "Month" ; Month ( $sc_Date ) = Month ( CalendarRows::DateFocusGlob )
;
   $sc_Date ≥ GetAsDate ( CalendarRows::DateRangeStartAutoGlob ) and $sc_Date ≤ GetAsDate ( CalendarRows::DateRangeEndAutoGlob )
)

and

not PatternCount ( $$sc_Mode ; "Day" ) // Always refresh on the day; it's fast and just one day. Also gets around the fact that we may show part of the next day in our time scroll, so the test above won't work when clicking one day forward in this case.

and

CalendarInterface::TimeScaleGlob ≠ "day" // always refresh the day scale of the grid view


That's it. Thanks for catching this!

- John