Moodle

Calendar unexpectedly shows events from other courses when switching months in editing view

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: Calendar
  • Labels:
    None
  • Environment:
    Any
  • Database:
    Any
  • Affected Branches:
    MOODLE_18_STABLE

Description

Using Moodle 1.8.2+ (2007021520)
When editing a course calendar, the 'event view mode' changes unexpectedly when switching months.

To reproduce the behaviour, log on as a user who is a teacher in more than one course, where each courses contains course events in the current month (e.g. August). Enter one of the courses, and click on the month title in the calendar to enter Calendar editing mode. So far you should see only the courses for the current course. Now edit the following month (e.g. September). This causes the view mode to change to "All courses" automatically, so events from other courses suddenly appear in the calendars.

The problem is caused by a missing HTTP parameter in the URL of the link to other months. e.g.

http://server/moodle/calendar/view.php?view=month&cal_d=1&cal_m=9&cal_y=2007

should be

http://server/moodle/calendar/view.php?view=month&course=4&cal_d=1&cal_m=9&cal_y=2007

to specify the current course.

Issue Links

Activity

Hide
Ken Bauer added a comment -

This seems to be the same issue.

Show
Ken Bauer added a comment - This seems to be the same issue.
Hide
Nicolas Martignoni added a comment -

Closing as duplicate

Show
Nicolas Martignoni added a comment - Closing as duplicate

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: