Moodle

Upcoming Events block does not show course events on main page

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.1
  • Component/s: Calendar
  • Labels:
    None
  • Environment:
    Redhat Enterprise 4AS, Apache 2.2.x, PHP 5.2.5, MySQL 5.x
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Course events in the calendar block will not show up in the Upcoming Events block on the main page. These course events will only show up in the Upcoming Events block when the user is in the course page for the corresponding course event.

Activity

Hide
Petr Škoda (skodak) added a comment -

Hello,
Could you please try the latest 1.9+ version? I think it might have been already fixed.

Petr

Show
Petr Škoda (skodak) added a comment - Hello, Could you please try the latest 1.9+ version? I think it might have been already fixed. Petr
Hide
Greg Rodenhiser added a comment -

I actually updated to the latest 1.9+ this morning. This fixed the same
issue in the Calendar month view on the main page, but the Upcoming Events
block was still having the problem. I fixed Upcoming Events by appending
the same two lines of PHP to block_calendar_upcoming.php that fixed
block_calendar_month.php:

$SESSION->cal_courses_shown = calendar_get_default_courses(true);
calendar_set_referring_course(0);

Show
Greg Rodenhiser added a comment - I actually updated to the latest 1.9+ this morning. This fixed the same issue in the Calendar month view on the main page, but the Upcoming Events block was still having the problem. I fixed Upcoming Events by appending the same two lines of PHP to block_calendar_upcoming.php that fixed block_calendar_month.php: $SESSION->cal_courses_shown = calendar_get_default_courses(true); calendar_set_referring_course(0);
Hide
Petr Škoda (skodak) added a comment -

thanks! I will update the code there tomorrow

Show
Petr Škoda (skodak) added a comment - thanks! I will update the code there tomorrow
Hide
Petr Škoda (skodak) added a comment -

forgot about his, sorry - tomorrow

Show
Petr Škoda (skodak) added a comment - forgot about his, sorry - tomorrow
Hide
Petr Škoda (skodak) added a comment -

fixed in cvs, big thanks for spotting this!

Show
Petr Škoda (skodak) added a comment - fixed in cvs, big thanks for spotting this!
Hide
Jerome Mouneyrac added a comment -

On the main page:

  • as a student of a course, I see upcoming course events => OK
  • as Moodle administrator, I don't see upcoming course event => OK
Show
Jerome Mouneyrac added a comment - On the main page:
  • as a student of a course, I see upcoming course events => OK
  • as Moodle administrator, I don't see upcoming course event => OK

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: