Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31339

"Monthly view" block showing wrong year after create/edit calendar event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.2.1
    • Calendar
    • MOODLE_22_STABLE
    • Hide

      Patch attached.

      Show
      Patch attached.
    • Hide

      Create/edit an event, examine "Monthly view" block at side. Events for the months on display should appear.

      Show
      Create/edit an event, examine "Monthly view" block at side. Events for the months on display should appear.

      After creating or editing a calendar event, the redirect to displaying the calendar uses a two-digit value for the querystring year (cal_y) variable - e.g. "12" when it should be "2012".
      This is due to using the format 'y' instead of 'Y' with date().

      This means that the wrong year is queried for events to display in the Monthly view block (in my case, showing no events at all).

      Expected behaviour: Correct events are shown in the block.
      Actual behaviour: No events are shown in the block.

            poltawski Dan Poltawski
            balchd Dave Balch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.